最赞回答 / 孜孜胖胖
package.json文件中"scripts": {"test": "echo \"Error: no test specified\" && exit 1","build": "cross-env NODE_ENV=production webpack --config webpack.config.js","dev": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js "},"d...
2020-03-12
最新回答 / 海的飘逸
npm install @babel/core @babel/preset-env babel-loader --save-dev在.babelrc文件或在webpack.config.js文件中,将原来的env替换为@babel/preset-env原文地址http://www.mamicode.com/info-detail-2545961.html
2020-03-07
最新回答 / 孜孜胖胖
app.vue报错原因:css的id符号无法识别。需要css-loader进行解析const path = require('path')const VueLoaderPlugin = require('vue-loader/lib/plugin')module.exports = { entry: path.join(__dirname,'src/index.js'), output: { filename: 'bundle.js', path: path.join(__dirname,...
2020-02-24
最赞回答 / 可食野生菌
1.安装vue-template-compiler<...code...>2.引入VueLoaderPlugin在webpack.config.js 开头引入<...code...>module.exports中增加:<...code...>解决<...图片...>
2020-02-22