1 2 3 4 5 6 7 8 9 10 11 12 | index.js?bed3:167 ./node_modules/css-loader?{ "sourceMap" : true }!./node_modules/vue-loader/lib/style-compiler?{ "vue" : true , "id" : "data-v-04c2046b" , "scoped" : false , "hasInlineConfig" : false }!./node_modules/less-loader/dist/cjs.js?{ "sourceMap" : true }!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue Module build failed: width: 100%; .border-1px( rgba(7, 17, 27, 0.1)); ^ .border-1px is undefined in C:\Users\Administrator\sell-app\src\App.vue (line 34, column 2) @ ./node_modules/vue-style-loader!./node_modules/css-loader?{ "sourceMap" : true }!./node_modules/vue-loader/lib/style-compiler?{ "vue" : true , "id" : "data-v-04c2046b" , "scoped" : false , "hasInlineConfig" : false }!./node_modules/less-loader/dist/cjs.js?{ "sourceMap" : true }!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-357 13:3-17:5 14:22-365 @ ./src/App.vue @ ./src/main.js @ multi (webpack)-dev-server/client?http: //localhost:8080 webpack/hot/dev-server ./src/main.js |
我是在main.js中直接引入的 没有在webpack.base.conf.js中配置rules,配置了也报错~ 在app组件中的style中单独引入就能生效
import './common/css/common.less'
掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp
了解课程