28 lines
691 B
JavaScript
28 lines
691 B
JavaScript
const path = require('path')
|
|
const webpack = require('webpack')
|
|
|
|
const { merge } = require('webpack-merge')
|
|
|
|
const baseConfig = require('./webpack.config.base')
|
|
|
|
module.exports = merge(baseConfig, {
|
|
mode: 'development',
|
|
devtool: 'eval-source-map',
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
NODE_ENV: '"development"',
|
|
ELECTRON_DISABLE_SECURITY_WARNINGS: 'true',
|
|
},
|
|
__VUE_OPTIONS_API__: 'true',
|
|
__VUE_PROD_DEVTOOLS__: 'false',
|
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false',
|
|
staticPath: `"${path.join(__dirname, '../../src/static').replace(/\\/g, '\\\\')}"`,
|
|
}),
|
|
],
|
|
performance: {
|
|
hints: false,
|
|
},
|
|
})
|
|
|