@easy-webpack/config-electron-renderer
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -6,3 +6,3 @@ "use strict"; | ||
return function electronRenderer() { | ||
return { | ||
var config = { | ||
metadata: { | ||
@@ -15,5 +15,2 @@ ELECTRON: 'renderer' | ||
].concat(this.entry) : this.entry, | ||
output: { | ||
publicPath: "http://" + this.metadata.host + ":" + this.metadata.port + "/" | ||
}, | ||
plugins: (this.metadata.HMR ? [new webpack.HotModuleReplacementPlugin()] : []) | ||
@@ -26,4 +23,10 @@ .concat(core_1.get(this, 'plugins', [])), | ||
}; | ||
if (this.metadata.HMR) { | ||
config.output = { | ||
publicPath: "http://" + this.metadata.host + ":" + this.metadata.port + "/" | ||
}; | ||
} | ||
return config; | ||
}; | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -55,3 +55,3 @@ { | ||
}, | ||
"version": "1.3.1" | ||
"version": "1.3.2" | ||
} |
@@ -9,3 +9,3 @@ import {WebpackConfig, get} from '@easy-webpack/core' | ||
return function electronRenderer(this: WebpackConfig): WebpackConfig { | ||
return { | ||
const config = <WebpackConfig> { | ||
metadata: { | ||
@@ -21,6 +21,2 @@ ELECTRON: 'renderer' | ||
output: { | ||
publicPath: `http://${this.metadata.host}:${this.metadata.port}/` | ||
}, | ||
plugins: (this.metadata.HMR ? [new webpack.HotModuleReplacementPlugin()] : []) | ||
@@ -34,3 +30,11 @@ .concat(get(this, 'plugins', [])), | ||
} | ||
if (this.metadata.HMR) { | ||
config.output = { | ||
publicPath: `http://${this.metadata.host}:${this.metadata.port}/` | ||
} | ||
} | ||
return config | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
6840
96