|
@@ -8,6 +8,7 @@ module.exports = {
|
|
|
framework: ['react','react-dom','redux','react-redux'],
|
|
|
staff:'./src/staff/index.js',
|
|
|
workbench:'./src/workbench/index.js',
|
|
|
+ hr:'./src/human-resource/index.js',
|
|
|
},
|
|
|
output: {
|
|
|
filename: 'js/bundle.js',
|
|
@@ -61,6 +62,11 @@ module.exports = {
|
|
|
filename: 'staff/index.html',
|
|
|
chunks:['staff','framework']
|
|
|
}),
|
|
|
+ new HtmlWebpackPlugin({
|
|
|
+ template: 'public/sub_index.html',
|
|
|
+ filename: 'hr/index.html',
|
|
|
+ chunks:['hr','framework']
|
|
|
+ }),
|
|
|
]
|
|
|
|
|
|
|