forked from chrisvfritz/hello-vue-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
40 lines (36 loc) · 1007 Bytes
/
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
const path = require('path')
module.exports = {
chainWebpack: config => {
config
.entry('app')
.clear()
.add('./demo/main.js')
// Modify the export of every .vue file so that the
// component is automatically installed if a global
// Vue is available (e.g. from dropping Vue in as a
// script tag).
config.module
.rule('vue')
.use('global-vue-loader')
.loader(path.resolve(__dirname, 'build-utils/global-vue-loader'))
.before('vue-loader')
config.module
.rule('meta')
.resourceQuery(/blockType=meta/)
.use('null-loader')
.loader('null-loader')
config.module
.rule('example')
.resourceQuery(/blockType=example/)
.use('null-loader')
.loader('null-loader')
},
devServer: {
contentBase: path.join(__dirname, 'tests/e2e/fixtures/public')
},
css: {
// Optionally set this to true if you want CSS
// to be extracted into separate CSS files.
extract: false
}
}