Revert "Track dist"
This reverts commit 3299e3e77e352106842f631db8ca51e86a084468
This commit is contained in:
parent
b81cbcc038
commit
e46334e7dd
48 changed files with 205 additions and 4765 deletions
|
|
@ -1,32 +1,15 @@
|
|||
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"))
|
||||
}
|
||||
})
|
||||
);
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
"process.env": {
|
||||
PACKAGE: JSON.stringify(require("./package.json"))
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
outputDir: (function() {
|
||||
if (process.env.VUE_APP_TARGET == "electron-renderer") {
|
||||
return "./app/dist";
|
||||
} else {
|
||||
return "./dist";
|
||||
}
|
||||
})(),
|
||||
|
||||
publicPath: ""
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue