Commit 4b8cdc2a by crushh

Merge branch 'feature/十月迭代' of http://git.gicdev.com/office/haoban-3 into feature/十月迭代

parents 6d7e8d39 76ac2aec
......@@ -31,9 +31,9 @@ module.exports = {
],
// allow async-await
"generator-star-spacing": "off",
"no-console": process.env.NODE_ENV === "production" ? 2 : 0,
"no-alert": process.env.NODE_ENV === "production" ? 2 : 0, //禁止使用alert confirm prompt
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
// "no-console": process.env.NODE_ENV === "production" ? 2 : 0,
// "no-alert": process.env.NODE_ENV === "production" ? 2 : 0, //禁止使用alert confirm prompt
// "no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
// --------------------静态检测-----------------------------
/**
* 静态检测:
......
......@@ -55,8 +55,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true,
favicon: './favicon.ico'
inject: true
}),
// copy custom static assets
new CopyWebpackPlugin([
......
......@@ -63,6 +63,7 @@ const webpackConfig = merge(baseWebpackConfig, {
new HtmlWebpackPlugin({
filename: config.build.index,
template: 'index.html',
favicon: './favicon.ico',
inject: true,
minify: {
removeComments: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment