采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
老师为什么你将stylus安装在生产依赖里,进入生产阶段stylus不是要提前转为css吗
生产打包也需要解析stylus
webpack生产打包时要解析Stylus,babel 在生产打包时也要,为什么babel是开发依赖。^-^
把babel截图发我看一栖,devDep那里
老师,我是看您在资料库里的项目的package.json是这样的 : "dependencies": { "axios": "^0.17.1", "better-scroll": "^1.8.1", "stylus": "^0.54.5", "stylus-loader": "^3.0.1", "vue": "^2.5.2", "vue-awesome-swiper": "^2.6.7", "vue-router": "^3.0.1", "vuex": "^3.0.1" }, "devDependencies": { "autoprefixer": "^7.1.2", "babel-core": "^6.22.1", "babel-eslint": "^8.2.1", "babel-helper-vue-jsx-merge-props": "^2.0.3", "babel-loader": "^7.1.1", "babel-plugin-syntax-jsx": "^6.18.0", "babel-plugin-transform-runtime": "^6.22.0", "babel-plugin-transform-vue-jsx"
登录后可查看更多问答,登录/注册
课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握
1.8k 20
1.5k 19
2.6k 17
1.3k 16
1.5k 15