-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvue.config.js
More file actions
35 lines (33 loc) · 850 Bytes
/
vue.config.js
File metadata and controls
35 lines (33 loc) · 850 Bytes
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
const path = require('path')
const webpack = require('webpack')
const config = require('config')
const MonacoEditorPlugin = require('monaco-editor-webpack-plugin')
const StyleLintPlugin = require('stylelint-webpack-plugin')
module.exports = {
configureWebpack: {
devtool: 'source-map',
plugins: [
new StyleLintPlugin(),
new MonacoEditorPlugin({
languages: ['javascript', 'css', 'html']
}),
new webpack.DefinePlugin({
'__APP_CONFIG__': JSON.stringify(config.get('frontend'))
}),
new webpack.EnvironmentPlugin({
'testnet': null
})
]
},
chainWebpack: config => {
config.resolve.alias
.set('src', path.resolve(__dirname, 'src'))
config.module
.rule('eslint')
.use('eslint-loader')
.tap(options => {
options.configFile = path.resolve(__dirname, '.eslintrc.js')
return options
})
}
}