I am currently exploring the use of Pure.css in my application. After installing it via npm, I have configured my brunch-config.js as follows:
stylesheets: {
joinTo: {
'app.css': /^app/,
'vendor.css': /^(?!app)/
}
}
At this point, I anticipated that vendor.css would be generated, but unfortunately it does not. Strangely, if I include require('purecss');
in my JavaScript file, then the vendor.css is generated. However, this results in a JavaScript error stating "Cannot find module 'purecss' from '<filename>'". I have also experimented with using various versions of @import 'purecss'
in my CSS files without any success.
Does anyone know how to properly include vendor CSS from npm modules?