Skip to content

Commit

Permalink
import.html
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Jun 21, 2018
1 parent db96f98 commit ae8f4a3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/cxmooc-tools/import.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
</head>
<body>

</body>
</html>
10 changes: 10 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
})
]
}

0 comments on commit ae8f4a3

Please sign in to comment.