1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00

Restore old Hass.io HTML build (#1218)

This commit is contained in:
Paulus Schoutsen
2018-05-27 17:24:40 -04:00
committed by GitHub
parent 66012da4de
commit 045b1d02be
3 changed files with 18 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ if (!version) {
const VERSION = version[0];
const isProdBuild = process.env.NODE_ENV === 'production'
const chunkFilename = isProdBuild ?
'[name]-[chunkhash].chunk.js' : '[name].chunk.js';
'chunk.[chunkhash].js' : '[name].chunk.js';
const plugins = [
new webpack.DefinePlugin({
@@ -33,7 +33,9 @@ if (isProdBuild) {
module.exports = {
mode: isProdBuild ? 'production' : 'development',
devtool: isProdBuild ? 'source-map ' : 'inline-source-map',
// Disabled in prod while we make Home Assistant able to serve the right files.
// Was source-map
devtool: isProdBuild ? 'none' : 'inline-source-map',
entry: {
app: './src/hassio-app.js',
},