From ae8f4a3bf071fa2829bb3ba1b385527aaf06fe8d Mon Sep 17 00:00:00 2001 From: CodFrm Date: Thu, 21 Jun 2018 13:34:04 +0800 Subject: [PATCH] import.html --- src/cxmooc-tools/import.html | 15 +++++++++++++++ webpack.config.js | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/cxmooc-tools/import.html diff --git a/src/cxmooc-tools/import.html b/src/cxmooc-tools/import.html new file mode 100644 index 00000000..534f3a83 --- /dev/null +++ b/src/cxmooc-tools/import.html @@ -0,0 +1,15 @@ + + + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + + + + \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 1e0936b6..4d9d2dcd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,6 +22,16 @@ module.exports = { removeComments: true }, chunks: ['popup'] + }), + new htmlWebpackPlugin({ + filename: __dirname + '/build/cxmooc-tools/src/import.html', + template: __dirname + '/src/cxmooc-tools/import.html', + inject: 'head', + title: '导入页面', + minify: { + removeComments: true + }, + chunks: ['popup'] }) ] } \ No newline at end of file