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 = { ...@@ -31,9 +31,9 @@ module.exports = {
], ],
// allow async-await // allow async-await
"generator-star-spacing": "off", "generator-star-spacing": "off",
"no-console": 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-alert": process.env.NODE_ENV === "production" ? 2 : 0, //禁止使用alert confirm prompt
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0, // "no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
// --------------------静态检测----------------------------- // --------------------静态检测-----------------------------
/** /**
* 静态检测: * 静态检测:
......
...@@ -55,8 +55,7 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -55,8 +55,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
filename: 'index.html', filename: 'index.html',
template: 'index.html', template: 'index.html',
inject: true, inject: true
favicon: './favicon.ico'
}), }),
// copy custom static assets // copy custom static assets
new CopyWebpackPlugin([ new CopyWebpackPlugin([
......
...@@ -63,6 +63,7 @@ const webpackConfig = merge(baseWebpackConfig, { ...@@ -63,6 +63,7 @@ const webpackConfig = merge(baseWebpackConfig, {
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
filename: config.build.index, filename: config.build.index,
template: 'index.html', template: 'index.html',
favicon: './favicon.ico',
inject: true, inject: true,
minify: { minify: {
removeComments: true, 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