From da42f735d9acd5ea3808304b35f46bf155a599ed Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 26 Nov 2016 23:19:34 +0800 Subject: [PATCH] Fix missing chunks for index page in webpack config --- webpackBaseConfig.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 459be73..da105ee 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -131,7 +131,23 @@ module.exports = { "imports?$=jquery!jquery-mousewheel", "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", + path.join(__dirname, 'public/js/cover.js') + ], index: [ "script!jquery-ui-resizable", "js-url",