Fix missing chunks for index page in webpack config

This commit is contained in:
Wu Cheng-Han 2016-11-26 23:19:34 +08:00
parent 5287d46931
commit da42f735d9
1 changed files with 16 additions and 0 deletions

View File

@ -131,7 +131,23 @@ module.exports = {
"imports?$=jquery!jquery-mousewheel", "imports?$=jquery!jquery-mousewheel",
"bootstrap" "bootstrap"
], ],
cover: [
path.join(__dirname, 'public/js/cover.js')
],
"cover-styles-pack": [
path.join(__dirname, 'node_modules/bootstrap/dist/css/bootstrap.min.css'),
path.join(__dirname, 'node_modules/font-awesome/css/font-awesome.min.css'),
path.join(__dirname, 'public/css/bootstrap-social.css'),
path.join(__dirname, 'node_modules/select2/select2.css'),
path.join(__dirname, 'node_modules/select2/select2-bootstrap.css'),
],
"cover-pack": [
"script!listPagnation",
"expose?select2!select2",
"expose?moment!moment",
"js-url", "js-url",
path.join(__dirname, 'public/js/cover.js')
],
index: [ index: [
"script!jquery-ui-resizable", "script!jquery-ui-resizable",
"js-url", "js-url",