-
Notifications
You must be signed in to change notification settings - Fork 16
/
vue.config.js
40 lines (34 loc) · 872 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
// Vue config for the playground
const path = require('path')
const playgroundPath = path.resolve(__dirname, 'playground')
module.exports = {
lintOnSave: 'warning',
css: {
loaderOptions: {
scss: {
additionalData: `
@import "@playground/scss/variables.scss";
`
}
}
},
configureWebpack: {
resolve: {
alias: {
'@playground': playgroundPath
}
}
},
chainWebpack: (config) => {
// Clear the existing entry point
config.entry('app').clear()
// Add the playground entry point
config.entry('app').add('./playground/main.js')
config.plugin('html').tap((args) => {
args[0].template = 'playground/public/index.html'
args[0].title = 'vue-modal playground'
args[0].meta = { description: 'Playground for vue-modal Vue.js 2' }
return args
})
}
}