-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
56 lines (51 loc) · 2.47 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
var path = require('path')
const webpack = require('webpack')
module.exports = {
outputDir: path.resolve(__dirname, './Scripts/bundle/'),
filenameHashing: false,
configureWebpack: {
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1
})
],
// Set JS file output
output: {
filename: "[name].js",
chunkFilename: "[name].js"
}
},
chainWebpack: config => {
config.optimization.delete('splitChunks');
// Set CSS file output
if (config.plugins.has("extract-css")) {
const extractCSSPlugin = config.plugin("extract-css");
extractCSSPlugin &&
extractCSSPlugin.tap(() => [
{
filename: "css/[name].css",
chunkFilename: "css/[name].css"
}
]);
}
// set initial entry (we dont import this file anywhere. it's a placeholder.)
config.entry("app").clear().add("./src/app.ts");
// keep adding new entries from here
config.entry("ScreenImpactByActivity").add("./src/views/ScreenImpactByActivity/main.ts");
config.entry("PolicyContact").add("./src/views/PolicyContact/main.ts");
config.entry("DisabilityProductDetail").add("./src/views/DisabilityProductDetail/main.ts");
config.entry("LifeProductDetail").add("./src/views/LifeProductDetail/main.ts");
config.entry("Rates").add("./src/views/Rates/main.ts");
config.entry("ImplementationRecord").add("./src/views/ImplementationRecord/main.ts");
config.entry("SystemAdmin").add("./src/views/SystemAdmin/main.ts");
config.entry("ShortTermDisabilityCoverage").add("./src/views/ShortTermDisabilityCoverage/main.ts");
config.entry("LongTermDisabilityCoverage").add("./src/views/LongTermDisabilityCoverage/main.ts");
config.entry("Dashboard").add("./src/views/Dashboard/main.ts");
config.entry("Enrollments").add("./src/views/Enrollments/main.ts");
config.entry("ClaimLossUnits").add("./src/views/ClaimLossUnits/main.ts");
config.entry("LDIImport").add("./src/views/LDIImport/main.ts");
config.entry("ValidateActivity").add("./src/views/ValidateActivity/main.ts");
config.entry("InitiateActivity").add("./src/views/InitiateActivity/main.ts");
config.entry("ParticipatingEntity").add("./src/views/ParticipatingEntity/main.ts");
}
}