Ran linter
This commit is contained in:
parent
9141f44ebb
commit
a815ed549f
1 changed files with 22 additions and 20 deletions
|
|
@ -1,24 +1,26 @@
|
||||||
var webpack = require('webpack');
|
var webpack = require("webpack");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
configureWebpack: config => {
|
configureWebpack: config => {
|
||||||
config.target = process.env.VUE_APP_TARGET || 'web',
|
(config.target = process.env.VUE_APP_TARGET || "web"),
|
||||||
config.entry = (process.env.VUE_APP_TARGET == 'electron-renderer')
|
(config.entry =
|
||||||
? {
|
process.env.VUE_APP_TARGET == "electron-renderer"
|
||||||
main: './src/main.js',
|
? {
|
||||||
app: './src/main.app.js'
|
main: "./src/main.js",
|
||||||
}
|
app: "./src/main.app.js"
|
||||||
:{
|
}
|
||||||
main: './src/main.js',
|
: {
|
||||||
},
|
main: "./src/main.js"
|
||||||
config.plugins.push(
|
}),
|
||||||
new webpack.DefinePlugin({
|
config.plugins.push(
|
||||||
'process.env': {
|
new webpack.DefinePlugin({
|
||||||
PACKAGE: JSON.stringify(require('./package.json'))
|
"process.env": {
|
||||||
}
|
PACKAGE: JSON.stringify(require("./package.json"))
|
||||||
})
|
}
|
||||||
)
|
})
|
||||||
|
);
|
||||||
},
|
},
|
||||||
outputDir: (process.env.VUE_APP_TARGET == 'electron-renderer') ? './app/dist' : './dist',
|
outputDir:
|
||||||
publicPath: ''
|
process.env.VUE_APP_TARGET == "electron-renderer" ? "./app/dist" : "./dist",
|
||||||
}
|
publicPath: ""
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue