可能非常简单,但是当我使用“grunt”构建应用程序时,如何确保它包含一个自定义“content”文件夹,其中包含图像资源等?
目前,当我执行“grunt”时,它仅包含“css”、“lib”、“src”和“index.html”
最佳答案
您可以使用grunt-contrib-copy并指定在构建应用程序时要在 dist 文件夹中复制哪些文件。
示例配置:
copy: {
main: {
src: 'content/*',
dest: 'dist/',
},
},
关于gruntjs - 如何将文件夹添加到 grunt dist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23835721/