标签 vue-cli3 下的文章

1.由于使用 uglifyjs-webpack-plugin 插件打包会报错,不在介绍使用方法,2.使用webpack提供的删除console的插件:安装terser-webpack-pluginnpm install terser-webpack-plugin -D 然后在vue.config.js中写插件的配置:module.export = { configureWebpack: (config)=>{ if(process.env.NODE_ENV === 'production'){ config.optimization.minim- 阅读剩余部分 -

vue create hello-world创建项目的时候选择了Linter / Formatter,所以写代码的时候会有代码规范检查,怎么才能关闭这个校验呢1.项目创建好后会生成 .eslintrc.js文件module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/essential', // '@vue/standard',//这行注释就可以 '@vue/typescript' ], rules: { 'no-c- 阅读剩余部分 -