最新回答 / chale_c
? babel-plugin-syntax-jsx\??babel-plugin-transform-vue-jsx\??babel-helper-vue-jsx-merge-props\??babel-preset-env\?裝這三個插件,在 .babelrc中配置?{plugins: ["transform-vue-jsx"]}重新安裝babel-loader 刪掉之前默認的6.23.0 npm i babel-loader@7 -D重新啟動應用程序。
2018-11-07
最新回答 / 茉莉520清香
npm install stylus-loadernpm install stylus在webpack.config中添加{test:/\.styl$/,use:[{loader:'style-loader'},{loader:'css-loader'},{loader:'stylus-loader'}]}
2018-10-29
最贊回答 / 阿姨我真不是吳彥祖
不用給webpack降級 4.0+都出了,為什么還用3.0+ 。解決代碼如下(webpack.config.js 頁面,增加2處代碼):<...code...>
2018-10-28
最贊回答 / 慕絲4684016
在 webpack.config.js 加入?const {VueLoaderPlugin} = require('vue-loader');和module.exports加入plugins: [new VueLoaderPlugin()]
2018-10-26
最新回答 / Tanjia
webpack 4.0以上,必須指定mode。package.json 配置如下:"scripts": {? ?"test": "echo \"Error: no test specified\" && exit 1",? ?"build": "cross-env NODE_ENV=production webpack --mode production --config webpack.config.js --progress --display-modules --colors --d...
2018-10-24
最新回答 / Tanjia
webpack 4.0以上,必須指定mode。package.json 配置如下:"scripts": {? ?"test": "echo \"Error: no test specified\" && exit 1",?
?"build": "cross-env NODE_ENV=production webpack --mode production
--config webpack.config.js --progress --display-modules --colors
...
2018-10-24