<style scoped>
#app {
position absolute
left 0
right 0
top 0
bottom 0
}
#cover {
position absolute
left 0
right 0
top 0
bottom 0
background-color #555
opacity 0.5
z-index: -1
}
</style>
ERROR in ./src/app.vue?vue&type=style&index=0&id=5ef48958&lang=stylus&scoped=true& (./node_modules/vue-loader/lib??vue-loader-options!./src/app.vue?vue&type=style&index=0&id=5ef48958&lang=stylus&scoped=true&) 16:0
Module parse failed: Unexpected character '#' (16:0)
You may need an appropriate loader to handle this file type.
|
|
> #app {
| position absolute
| left 0
@ ./src/app.vue?vue&type=style&index=0&id=5ef48958&lang=stylus&scoped=true& 1:0-150 1:166-169 1:171-318 1:171-318
@ ./src/app.vue
@ ./src/index.js
我也遇到同样的问题,太感谢各位了。
你是怎么弄的....我也遇到这个问题了
{ test: /\.styl(us)?$/, use: [ 'vue-style-loader', 'css-loader', 'stylus-loader' ]}
配置成这样,就可以了,在webpack.config.js里
VueLoaderPlugin
看下是不是少了这个配置,或者你把webpack版本退到3也可以
在webpack.config.js里面缺少配置