|
@@ -7,23 +7,23 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
const webpack = require('webpack');
|
|
const webpack = require('webpack');
|
|
// const proxyHost = "http://192.168.2.236:5858";
|
|
// const proxyHost = "http://192.168.2.236:5858";
|
|
-const proxyHost = "http://173.18.12.195:5858";
|
|
|
|
-// const proxyHost = "http://192.168.4.222:5858";
|
|
|
|
|
|
+// const proxyHost = "http://173.18.12.195:5858";
|
|
|
|
+const proxyHost = "http://192.168.4.222:5858";
|
|
// const proxyHost = "http://192.168.3.117:5858";//铁钢
|
|
// const proxyHost = "http://192.168.3.117:5858";//铁钢
|
|
// const proxyHost = "http://192.168.3.113:5858";//王峰
|
|
// const proxyHost = "http://192.168.3.113:5858";//王峰
|
|
module.exports = {
|
|
module.exports = {
|
|
entry: {
|
|
entry: {
|
|
index: path.resolve(__dirname, 'src/js', 'index.js'),
|
|
index: path.resolve(__dirname, 'src/js', 'index.js'),
|
|
- qcScore:path.resolve(__dirname, 'src/js', 'qcScore.js'),
|
|
|
|
- login:path.resolve(__dirname, 'src/js', 'login.js'),
|
|
|
|
- console:path.resolve(__dirname, 'src/js', 'console.js'),
|
|
|
|
- deptConsole:path.resolve(__dirname, 'src/js', 'deptConsole.js'),
|
|
|
|
|
|
+ qcScore: path.resolve(__dirname, 'src/js', 'qcScore.js'),
|
|
|
|
+ login: path.resolve(__dirname, 'src/js', 'login.js'),
|
|
|
|
+ console: path.resolve(__dirname, 'src/js', 'console.js'),
|
|
|
|
+ deptConsole: path.resolve(__dirname, 'src/js', 'deptConsole.js'),
|
|
moduleManager: path.resolve(__dirname, 'src/js', 'moduleManager.js'),
|
|
moduleManager: path.resolve(__dirname, 'src/js', 'moduleManager.js'),
|
|
itemManager: path.resolve(__dirname, 'src/js', 'itemManager.js'),
|
|
itemManager: path.resolve(__dirname, 'src/js', 'itemManager.js'),
|
|
qcList: path.resolve(__dirname, 'src/js', 'qcList.js'),
|
|
qcList: path.resolve(__dirname, 'src/js', 'qcList.js'),
|
|
- qcListDocteam:path.resolve(__dirname, 'src/js', 'qcListDocteam.js'),
|
|
|
|
- qcListDept:path.resolve(__dirname, 'src/js', 'qcListDept.js'),
|
|
|
|
- qcListPerson:path.resolve(__dirname, 'src/js', 'qcListPerson.js'),
|
|
|
|
|
|
+ qcListDocteam: path.resolve(__dirname, 'src/js', 'qcListDocteam.js'),
|
|
|
|
+ qcListDept: path.resolve(__dirname, 'src/js', 'qcListDept.js'),
|
|
|
|
+ qcListPerson: path.resolve(__dirname, 'src/js', 'qcListPerson.js'),
|
|
userManager: path.resolve(__dirname, 'src/js', 'userManager.js'),
|
|
userManager: path.resolve(__dirname, 'src/js', 'userManager.js'),
|
|
roleManager: path.resolve(__dirname, 'src/js', 'roleManager.js'),
|
|
roleManager: path.resolve(__dirname, 'src/js', 'roleManager.js'),
|
|
tiaomu: path.resolve(__dirname, 'src/js', 'tiaomu.js'),
|
|
tiaomu: path.resolve(__dirname, 'src/js', 'tiaomu.js'),
|
|
@@ -45,30 +45,30 @@ module.exports = {
|
|
tiaomuControl: path.resolve(__dirname, 'src/js', 'tiaomuControl.js'),
|
|
tiaomuControl: path.resolve(__dirname, 'src/js', 'tiaomuControl.js'),
|
|
assertType: path.resolve(__dirname, 'src/js', 'assertType.js'),
|
|
assertType: path.resolve(__dirname, 'src/js', 'assertType.js'),
|
|
assertTypeDetail: path.resolve(__dirname, 'src/js', 'assertTypeDetail.js'),
|
|
assertTypeDetail: path.resolve(__dirname, 'src/js', 'assertTypeDetail.js'),
|
|
- singleVeto:path.resolve(__dirname, 'src/js', 'singleVeto.js'),
|
|
|
|
- itemDefectDetail:path.resolve(__dirname, 'src/js', 'itemDefectDetail.js'),
|
|
|
|
- keyItemFlawControl:path.resolve(__dirname, 'src/js', 'keyItemFlawControl.js'),
|
|
|
|
|
|
+ singleVeto: path.resolve(__dirname, 'src/js', 'singleVeto.js'),
|
|
|
|
+ itemDefectDetail: path.resolve(__dirname, 'src/js', 'itemDefectDetail.js'),
|
|
|
|
+ keyItemFlawControl: path.resolve(__dirname, 'src/js', 'keyItemFlawControl.js'),
|
|
qualifiedPhysician: path.resolve(__dirname, 'src/js', 'qualifiedPhysician.js'),
|
|
qualifiedPhysician: path.resolve(__dirname, 'src/js', 'qualifiedPhysician.js'),
|
|
deptQualifiedPhysician: path.resolve(__dirname, 'src/js', 'deptQualifiedPhysician.js'),
|
|
deptQualifiedPhysician: path.resolve(__dirname, 'src/js', 'deptQualifiedPhysician.js'),
|
|
- qcListCopy:path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
|
|
|
|
|
|
+ qcListCopy: path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
|
|
qcListCopyUnqualified: path.resolve(__dirname, 'src/js', 'qcListCopyUnqualified.js'),
|
|
qcListCopyUnqualified: path.resolve(__dirname, 'src/js', 'qcListCopyUnqualified.js'),
|
|
- qcListOutHospital:path.resolve(__dirname, 'src/js', 'qcListOutHospital.js'),
|
|
|
|
- checkControl:path.resolve(__dirname, 'src/js', 'checkControl.js'),
|
|
|
|
- advice:path.resolve(__dirname, 'src/js', 'advice.js'),
|
|
|
|
- uncorrectedCasesStatistics:path.resolve(__dirname, 'src/js', 'uncorrectedCasesStatistics.js'),
|
|
|
|
- uncorrectedCopy:path.resolve(__dirname, 'src/js', 'uncorrectedCopy.js'),
|
|
|
|
- uccDetail:path.resolve(__dirname, 'src/js', 'uccDetail.js'),
|
|
|
|
- readmission:path.resolve(__dirname, 'src/js', 'readmission.js'),
|
|
|
|
- pacs:path.resolve(__dirname, 'src/js', 'pacs.js'),
|
|
|
|
- pacsDetail:path.resolve(__dirname, 'src/js', 'pacsDetail.js'),
|
|
|
|
- assist:path.resolve(__dirname, 'src/js', 'assist.js'),
|
|
|
|
- error:path.resolve(__dirname, 'src/js', 'error.js'),
|
|
|
|
- nursing:path.resolve(__dirname, 'src/js', 'nursing.js'),
|
|
|
|
- other:path.resolve(__dirname, 'src/js', 'other.js'),
|
|
|
|
- mentCenter:path.resolve(__dirname, 'src/js', 'mentCenter.js'),
|
|
|
|
- test:path.resolve(__dirname, 'src/js/dept', 'test.js'),
|
|
|
|
- partDetailControlDept:path.resolve(__dirname, 'src/js/dept', 'partDetailControlDept.js'),
|
|
|
|
- messageNoti:path.resolve(__dirname, 'src/js/dept', 'messageNoti.js'),
|
|
|
|
|
|
+ qcListOutHospital: path.resolve(__dirname, 'src/js', 'qcListOutHospital.js'),
|
|
|
|
+ checkControl: path.resolve(__dirname, 'src/js', 'checkControl.js'),
|
|
|
|
+ advice: path.resolve(__dirname, 'src/js', 'advice.js'),
|
|
|
|
+ uncorrectedCasesStatistics: path.resolve(__dirname, 'src/js', 'uncorrectedCasesStatistics.js'),
|
|
|
|
+ uncorrectedCopy: path.resolve(__dirname, 'src/js', 'uncorrectedCopy.js'),
|
|
|
|
+ uccDetail: path.resolve(__dirname, 'src/js', 'uccDetail.js'),
|
|
|
|
+ readmission: path.resolve(__dirname, 'src/js', 'readmission.js'),
|
|
|
|
+ pacs: path.resolve(__dirname, 'src/js', 'pacs.js'),
|
|
|
|
+ pacsDetail: path.resolve(__dirname, 'src/js', 'pacsDetail.js'),
|
|
|
|
+ assist: path.resolve(__dirname, 'src/js', 'assist.js'),
|
|
|
|
+ error: path.resolve(__dirname, 'src/js', 'error.js'),
|
|
|
|
+ nursing: path.resolve(__dirname, 'src/js', 'nursing.js'),
|
|
|
|
+ other: path.resolve(__dirname, 'src/js', 'other.js'),
|
|
|
|
+ mentCenter: path.resolve(__dirname, 'src/js', 'mentCenter.js'),
|
|
|
|
+ test: path.resolve(__dirname, 'src/js/dept', 'test.js'),
|
|
|
|
+ partDetailControlDept: path.resolve(__dirname, 'src/js/dept', 'partDetailControlDept.js'),
|
|
|
|
+ messageNoti: path.resolve(__dirname, 'src/js/dept', 'messageNoti.js'),
|
|
vendor: 'lodash', //多个页面所需的公共库文件,防止重复打包带入
|
|
vendor: 'lodash', //多个页面所需的公共库文件,防止重复打包带入
|
|
},
|
|
},
|
|
output: {
|
|
output: {
|
|
@@ -85,7 +85,7 @@ module.exports = {
|
|
title: 'test',
|
|
title: 'test',
|
|
template: path.resolve(__dirname, 'src/html/dept', 'test.html'),
|
|
template: path.resolve(__dirname, 'src/html/dept', 'test.html'),
|
|
filename: 'test.html',
|
|
filename: 'test.html',
|
|
- chunks: ['test', 'vendor', 'common','src/resouce/dot.js'],
|
|
|
|
|
|
+ chunks: ['test', 'vendor', 'common', 'src/resouce/dot.js'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -98,7 +98,7 @@ module.exports = {
|
|
title: 'index',
|
|
title: 'index',
|
|
template: path.resolve(__dirname, 'src/html', 'index.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'index.html'),
|
|
filename: 'index.html',
|
|
filename: 'index.html',
|
|
- chunks: ['index', 'vendor', 'common','scrollBar','src/resouce/dot.js'],
|
|
|
|
|
|
+ chunks: ['index', 'vendor', 'common', 'scrollBar', 'src/resouce/dot.js'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -133,12 +133,12 @@ module.exports = {
|
|
collapseWhitespace: true //删除空白符与换行符
|
|
collapseWhitespace: true //删除空白符与换行符
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
-
|
|
|
|
|
|
+
|
|
new HtmlWebpackPlugin({
|
|
new HtmlWebpackPlugin({
|
|
title: 'nursing',
|
|
title: 'nursing',
|
|
template: path.resolve(__dirname, 'src/html', 'nursing.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'nursing.html'),
|
|
filename: 'nursing.html',
|
|
filename: 'nursing.html',
|
|
- chunks: ['nursing', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['nursing', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -151,7 +151,7 @@ module.exports = {
|
|
title: 'other',
|
|
title: 'other',
|
|
template: path.resolve(__dirname, 'src/html', 'other.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'other.html'),
|
|
filename: 'other.html',
|
|
filename: 'other.html',
|
|
- chunks: ['other', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['other', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -164,7 +164,7 @@ module.exports = {
|
|
title: 'mentCenter',
|
|
title: 'mentCenter',
|
|
template: path.resolve(__dirname, 'src/html', 'mentCenter.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'mentCenter.html'),
|
|
filename: 'mentCenter.html',
|
|
filename: 'mentCenter.html',
|
|
- chunks: ['mentCenter', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['mentCenter', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -190,7 +190,7 @@ module.exports = {
|
|
title: 'console.html',
|
|
title: 'console.html',
|
|
template: path.resolve(__dirname, 'src/html', 'console.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'console.html'),
|
|
filename: 'console.html',
|
|
filename: 'console.html',
|
|
- chunks: ['console', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['console', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -203,7 +203,7 @@ module.exports = {
|
|
title: 'uncorrectedCopy.html',
|
|
title: 'uncorrectedCopy.html',
|
|
template: path.resolve(__dirname, 'src/html', 'uncorrectedCopy.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'uncorrectedCopy.html'),
|
|
filename: 'uncorrectedCopy.html',
|
|
filename: 'uncorrectedCopy.html',
|
|
- chunks: ['uncorrectedCopy', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['uncorrectedCopy', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -216,7 +216,7 @@ module.exports = {
|
|
title: 'pacs.html',
|
|
title: 'pacs.html',
|
|
template: path.resolve(__dirname, 'src/html', 'pacs.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'pacs.html'),
|
|
filename: 'pacs.html',
|
|
filename: 'pacs.html',
|
|
- chunks: ['pacs', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['pacs', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -229,7 +229,7 @@ module.exports = {
|
|
title: 'pacsDetail.html',
|
|
title: 'pacsDetail.html',
|
|
template: path.resolve(__dirname, 'src/html', 'pacsDetail.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'pacsDetail.html'),
|
|
filename: 'pacsDetail.html',
|
|
filename: 'pacsDetail.html',
|
|
- chunks: ['pacsDetail', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['pacsDetail', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -242,7 +242,7 @@ module.exports = {
|
|
title: 'assist.html',
|
|
title: 'assist.html',
|
|
template: path.resolve(__dirname, 'src/html', 'assist.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'assist.html'),
|
|
filename: 'assist.html',
|
|
filename: 'assist.html',
|
|
- chunks: ['assist', 'vendor', 'common','scrollBar'],
|
|
|
|
|
|
+ chunks: ['assist', 'vendor', 'common', 'scrollBar'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -671,7 +671,7 @@ module.exports = {
|
|
title: 'qcScore.html',
|
|
title: 'qcScore.html',
|
|
template: path.resolve(__dirname, 'src/html', 'qcScore.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'qcScore.html'),
|
|
filename: 'qcScore.html',
|
|
filename: 'qcScore.html',
|
|
- chunks: [ 'qcScore','vendor', 'common'],
|
|
|
|
|
|
+ chunks: ['qcScore', 'vendor', 'common'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|
|
@@ -825,9 +825,9 @@ module.exports = {
|
|
}),
|
|
}),
|
|
new CopyWebpackPlugin([
|
|
new CopyWebpackPlugin([
|
|
{
|
|
{
|
|
- from:'src/resource',
|
|
|
|
- to:path.resolve(__dirname,'dist','resource'),
|
|
|
|
- flatten:true, //false会拷贝原始文件夹路径
|
|
|
|
|
|
+ from: 'src/resource',
|
|
|
|
+ to: path.resolve(__dirname, 'dist', 'resource'),
|
|
|
|
+ flatten: true, //false会拷贝原始文件夹路径
|
|
}
|
|
}
|
|
]),
|
|
]),
|
|
new MiniCssExtractPlugin({
|
|
new MiniCssExtractPlugin({
|
|
@@ -851,7 +851,7 @@ module.exports = {
|
|
except: ['e']
|
|
except: ['e']
|
|
},
|
|
},
|
|
output: {
|
|
output: {
|
|
- beautify: true
|
|
|
|
|
|
+ beautify: true
|
|
},
|
|
},
|
|
sourceMap: false
|
|
sourceMap: false
|
|
}
|
|
}
|
|
@@ -870,14 +870,14 @@ module.exports = {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
module: {
|
|
module: {
|
|
noParse: /WdatePicker/,
|
|
noParse: /WdatePicker/,
|
|
rules: [
|
|
rules: [
|
|
{
|
|
{
|
|
- test: /.js$/,
|
|
|
|
- enforce: 'post',
|
|
|
|
- loader: 'es3ify-loader'
|
|
|
|
|
|
+ test: /.js$/,
|
|
|
|
+ enforce: 'post',
|
|
|
|
+ loader: 'es3ify-loader'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
test: /\.m?js$/,
|
|
test: /\.m?js$/,
|
|
@@ -885,41 +885,41 @@ module.exports = {
|
|
use: {
|
|
use: {
|
|
loader: 'babel-loader',
|
|
loader: 'babel-loader',
|
|
options: {
|
|
options: {
|
|
- presets:['@babel/preset-env']
|
|
|
|
|
|
+ presets: ['@babel/preset-env']
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
test: /\.css$/,
|
|
test: /\.css$/,
|
|
use: [{
|
|
use: [{
|
|
- loader: MiniCssExtractPlugin.loader
|
|
|
|
- },
|
|
|
|
|
|
+ loader: MiniCssExtractPlugin.loader
|
|
|
|
+ },
|
|
'css-loader'
|
|
'css-loader'
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
test: /\.less$/,
|
|
test: /\.less$/,
|
|
use: [{
|
|
use: [{
|
|
- loader: MiniCssExtractPlugin.loader
|
|
|
|
- },
|
|
|
|
|
|
+ loader: MiniCssExtractPlugin.loader
|
|
|
|
+ },
|
|
'css-loader', 'less-loader'
|
|
'css-loader', 'less-loader'
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- test:/\.(png|gif|jpg|jpeg|svg|eot|ttf|woff|woff2)$/,
|
|
|
|
- use:[{
|
|
|
|
- loader:'url-loader',
|
|
|
|
- options:{
|
|
|
|
- limit:10240,
|
|
|
|
- esModule:false,
|
|
|
|
- name:'[name]_[hash:6].[ext]',
|
|
|
|
- outputPath:'images/'
|
|
|
|
|
|
+ test: /\.(png|gif|jpg|jpeg|svg|eot|ttf|woff|woff2)$/,
|
|
|
|
+ use: [{
|
|
|
|
+ loader: 'url-loader',
|
|
|
|
+ options: {
|
|
|
|
+ limit: 10240,
|
|
|
|
+ esModule: false,
|
|
|
|
+ name: '[name]_[hash:6].[ext]',
|
|
|
|
+ outputPath: 'images/'
|
|
}
|
|
}
|
|
}],
|
|
}],
|
|
- exclude:/node_modules/
|
|
|
|
- },{
|
|
|
|
- test:/.html$/,
|
|
|
|
- use:'html-withimg-loader'
|
|
|
|
|
|
+ exclude: /node_modules/
|
|
|
|
+ }, {
|
|
|
|
+ test: /.html$/,
|
|
|
|
+ use: 'html-withimg-loader'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
@@ -931,6 +931,6 @@ module.exports = {
|
|
'/': proxyHost
|
|
'/': proxyHost
|
|
},
|
|
},
|
|
hot: true,
|
|
hot: true,
|
|
- openPage:'login.html'
|
|
|
|
|
|
+ openPage: 'login.html'
|
|
}
|
|
}
|
|
}
|
|
}
|