I need to prefix the Bulma css classes by using webpack. I found an example but my app uses Vue CLI 3 and I'm not sure how to translate the webpack config to a vue.config.js.
In my vue.config.js I have the following:
chainWebpack: config => {
config.module
.rule('css-prefixer')
.use(['style-loader', 'css-loader'])
.loader('postcss-loader')
.tap(options => {
// Prefixer goes here
return options
})
}
Which gives some internal webpack errors.
vue-clito work correctly. npm install the module, import it in your own.scssfile, import that.scssfile in yourmain.jsand you're done - Ohgodwhy.labelwhich causes problems when I dynamically load my app into an existing website. - Christiaan Maks