Vendor CSS files not being compiled for Brunch

故事扮演 提交于 2019-12-07 02:55:02

问题


I am having an issue with brunch@1.7.6 not compiling bower_component css files. Similar to Separating app and vendor css in Brunch. Only the css/app.css is getting generated for me. :/

{
  stylesheets: {
    joinTo: {
      'css/app.css': /^app/,
      'css/vendor.css': /^bower_components/
    }
}

Please let me know if I am doing something wrong. All seemed fine when I was using brunch@1.6.7. Did the config change with the introduction to bower being built in?


回答1:


With regards to x-editable, I ran into the failure to include the bower_components css, but found that I simply had to add the specifics in the overrides section of bower.json (since it has multiple library options the main is not included in the .bower.json).

I used the following overrides successfully:

"overrides": {
    "x-editable": {
        "main": [
            "dist/bootstrap3-editable/js/bootstrap-editable.js",
            "dist/bootstrap3-editable/css/bootstrap-editable.css"
        ]
    }
}


来源:https://stackoverflow.com/questions/18945353/vendor-css-files-not-being-compiled-for-brunch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!