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 = {
|
||||
configureWebpack: config => {
|
||||
config.target = process.env.VUE_APP_TARGET || 'web',
|
||||
config.entry = (process.env.VUE_APP_TARGET == 'electron-renderer')
|
||||
? {
|
||||
main: './src/main.js',
|
||||
app: './src/main.app.js'
|
||||
}
|
||||
:{
|
||||
main: './src/main.js',
|
||||
},
|
||||
config.plugins.push(
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
PACKAGE: JSON.stringify(require('./package.json'))
|
||||
}
|
||||
})
|
||||
)
|
||||
(config.target = process.env.VUE_APP_TARGET || "web"),
|
||||
(config.entry =
|
||||
process.env.VUE_APP_TARGET == "electron-renderer"
|
||||
? {
|
||||
main: "./src/main.js",
|
||||
app: "./src/main.app.js"
|
||||
}
|
||||
: {
|
||||
main: "./src/main.js"
|
||||
}),
|
||||
config.plugins.push(
|
||||
new webpack.DefinePlugin({
|
||||
"process.env": {
|
||||
PACKAGE: JSON.stringify(require("./package.json"))
|
||||
}
|
||||
})
|
||||
);
|
||||
},
|
||||
outputDir: (process.env.VUE_APP_TARGET == 'electron-renderer') ? './app/dist' : './dist',
|
||||
publicPath: ''
|
||||
}
|
||||
outputDir:
|
||||
process.env.VUE_APP_TARGET == "electron-renderer" ? "./app/dist" : "./dist",
|
||||
publicPath: ""
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue