error on <style lang="styl">
Closed this issue · 2 comments
retrogradeMT commented
on compiling, I get the error: Module not found: Error: Can't resolve 'styl' . When I change "styl" to stylus, everything works. I'm wondering if that is a typo or if I am missing a loader?
rmp135 commented
Vue determines which loader to use based on the lang. So lang=stylus
will use the stylus-loader.
To change this, edit your webpack.config file to include the following on the same level as the entry properties.
entry: { ... },
vue: {
loaders: {
styl: 'vue-style!css!stylus'
}
},
module: { ... }
retrogradeMT commented
Oh, I see. I figured it was something like that. Thank you