assetsmanager-brunch 不工作
assetsmanager-brunch is not working
我想将文件从 app 文件夹复制到 public 文件夹。 PFB coffee.script 代码段。
exports.config =
# See docs at https://github.com/brunch/brunch/blob/stable/docs/config.md.
conventions:
assets: /^app(\/|\)assets(\/|\)/
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/
assetsmanager:
copyTo:
'myAssets': ['app/adminTool/assets/*']
modules:
definition: false
wrapper: false
paths:
public: 'public'
如果它是一个 brunch 插件,那么我认为它应该在插件部分进行配置,如下所示:
exports.config = {
conventions: {
assets: /^app(\/|\)assets(\/|\)/,
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/
},
plugins: {
assetsmanager: {
copyTo: {
myAssets: ["app/adminTool/assets/*"]
}
}
},
modules: {
definition: false,
wrapper: false
}
}
结帐:https://github.com/brunch/brunch/blob/stable/docs/config.md#plugins
我想将文件从 app 文件夹复制到 public 文件夹。 PFB coffee.script 代码段。
exports.config =
# See docs at https://github.com/brunch/brunch/blob/stable/docs/config.md.
conventions:
assets: /^app(\/|\)assets(\/|\)/
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/
assetsmanager:
copyTo:
'myAssets': ['app/adminTool/assets/*']
modules:
definition: false
wrapper: false
paths:
public: 'public'
如果它是一个 brunch 插件,那么我认为它应该在插件部分进行配置,如下所示:
exports.config = {
conventions: {
assets: /^app(\/|\)assets(\/|\)/,
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/
},
plugins: {
assetsmanager: {
copyTo: {
myAssets: ["app/adminTool/assets/*"]
}
}
},
modules: {
definition: false,
wrapper: false
}
}
结帐:https://github.com/brunch/brunch/blob/stable/docs/config.md#plugins