forked from subdavis/Tusk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.dll.js
44 lines (43 loc) · 1.12 KB
/
webpack.dll.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
var path = require("path");
var webpack = require("webpack");
var UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
context: process.cwd(),
resolve: {
extensions: ['.js', '.jsx', '.json', '.less', '.css'],
modules: [__dirname, 'node_modules']
},
entry: {
library: [
"axios",
"babel-regenerator-runtime",
"base64-arraybuffer",
"case",
"json-formatter-js",
"kdbxweb",
"materialize-css",
"pako",
"vue/dist/vue.runtime.esm.js",
"vue-simple-spinner",
"webdav",
"xmldom",
]
},
output: {
path: path.join(__dirname, "dll"),
filename: "dll.[name].js",
library: "[name]"
},
plugins: [
new webpack.DllPlugin({
path: path.join(__dirname, "dll", "[name]-manifest.json"),
name: "[name]",
}),
new UglifyJSPlugin({}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
})
]
};