|
@@ -7,7 +7,6 @@ const webpack = require('webpack');
|
|
|
const proxyHost = "http://192.168.2.241:5050";
|
|
|
module.exports = {
|
|
|
entry: {
|
|
|
- shim: './node_modules/es5-shim',
|
|
|
index: path.resolve(__dirname, 'src', 'index.js'),
|
|
|
page: path.resolve(__dirname, 'src', 'page.js'),
|
|
|
information: path.resolve(__dirname, 'src/js', 'information.js'),
|
|
@@ -29,7 +28,7 @@ module.exports = {
|
|
|
title: 'index',
|
|
|
template: path.resolve(__dirname, 'src/html', 'index.html'),
|
|
|
filename: 'index.html',
|
|
|
- chunks: ['shim','index', 'vendor', 'common'],
|
|
|
+ chunks: ['index', 'vendor', 'common'],
|
|
|
inject: true,
|
|
|
hash: true, //防止缓存
|
|
|
minify: {
|
|
@@ -42,7 +41,7 @@ module.exports = {
|
|
|
title: 'page',
|
|
|
template: path.resolve(__dirname, 'src/html', 'page.html'),
|
|
|
filename: 'page.html',
|
|
|
- chunks: ['shim','page', 'vendor', 'common'],
|
|
|
+ chunks: ['page', 'vendor', 'common'],
|
|
|
inject: true,
|
|
|
hash: true, //防止缓存
|
|
|
minify: {
|
|
@@ -55,7 +54,7 @@ module.exports = {
|
|
|
title: 'information',
|
|
|
template: path.resolve(__dirname, 'src/html', 'information.html'),
|
|
|
filename: 'information.html',
|
|
|
- chunks: ['shim','information', 'vendor', 'common'],
|
|
|
+ chunks: ['information', 'vendor', 'common'],
|
|
|
inject: true,
|
|
|
hash: true, //防止缓存
|
|
|
minify: {
|
|
@@ -68,7 +67,7 @@ module.exports = {
|
|
|
title: 'drugInfo',
|
|
|
template: path.resolve(__dirname, 'src/html', 'drugInfo.html'),
|
|
|
filename: 'drugInfo.html',
|
|
|
- chunks: ['shim','information', 'vendor', 'common'],
|
|
|
+ chunks: ['information', 'vendor', 'common'],
|
|
|
inject: true,
|
|
|
hash: true, //防止缓存
|
|
|
minify: {
|
|
@@ -81,7 +80,7 @@ module.exports = {
|
|
|
title: 'disclaimer',
|
|
|
template: path.resolve(__dirname, 'src/html', 'disclaimer.html'),
|
|
|
filename: 'disclaimer.html',
|
|
|
- chunks: ['shim','vendor', 'common', 'disclaimer'],
|
|
|
+ chunks: ['vendor', 'common', 'disclaimer'],
|
|
|
inject: true,
|
|
|
hash: true, //防止缓存
|
|
|
minify: {
|
|
@@ -94,7 +93,7 @@ module.exports = {
|
|
|
title: 'scale',
|
|
|
template: path.resolve(__dirname, 'src/html', 'scale.html'),
|
|
|
filename: 'scale.html',
|
|
|
- chunks: ['shim','vendor', 'common', 'scale'],
|
|
|
+ chunks: ['vendor', 'common', 'scale'],
|
|
|
inject: true,
|
|
|
hash: true, //防止缓存
|
|
|
minify: {
|