-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplay.config.js
43 lines (35 loc) · 1.01 KB
/
play.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
"use strict";
const path = require("path");
module.exports = {
entry: {
app: "play/app.js",
preview: "play/preview.js"
},
dist: "dist-play",
port: 5000,
// compile Vue template
templateCompiler: true,
hmrEntry: [ "preview" ],
// no code split for 3rd party libraries
vendor: false,
html: [ {
chunks: [ "app" ],
filename: "index.html"
}, {
chunks: [ "preview" ],
filename: "preview.html"
} ],
sourceMap: false,
minimize: false,
webpack(config) {
config.resolveLoader.alias = {
// This is only needed in order to alias "vue-extract-loader" to
// the root folder of this package.
// You shouldn't do this in your project.
"vue-extract-loader": require.resolve("../../"),
// You can alias the loader to avoid repeating the configuration query
"vue-play-loader": "vue-extract-loader?block=play",
};
return config;
},
}