I added some css files from a template I bought to a phoenix project I added those files to: project_name/assets/css
then I proceed to run the brunch build
and ./node_modules/.bin/brunch build. I get this warn: css/phoenix.css compiled, but not written. Check your stylesheets.joinTo config.
When I try to reload the page none of the new css files are loading I get just 404s, here is my brunch_config.js file:
exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: "js/app.js"
// To use a separate vendor.js bundle, specify two files path
// http://brunch.io/docs/config#-files-
// joinTo: {
// "js/app.js": /^js/,
// "js/vendor.js": /^(?!js)/
// }
//
// To change the order of concatenation of files, explicitly mention here
// order: {
// before: [
// "vendor/js/jquery-2.1.1.js",
// "vendor/js/bootstrap.min.js"
// ]
// }
},
stylesheets: {
joinTo: {"css/app.css": /^(assets\/vendor\/css)|(deps)/ }
},
templates: {
joinTo: {"js/app.js": /^(assets\/vendor\/js)|(deps)/}
}
},
conventions: {
// This option sets where we should place non-css and non-js assets in.
// By default, we set this to "/assets/static". Files in this directory
// will be copied to `paths.public`, which is "priv/static" by default.
assets: /^(static)/
},
// Phoenix paths configuration
paths: {
// Dependencies and current project directories to watch
watched: ["static", "css", "js", "vendor"],
// Where to compile files to
public: "../priv/static"
},
// Configure your plugins
plugins: {
babel: {
// Do not use ES6 compiler in vendor code
ignore: [/vendor/]
}
},
modules: {
autoRequire: {
"js/app.js": ["js/app"]
}
},
npm: {
enabled: true
}
};
phoenix = 1.3