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

Fix event action in automation editor (#2686)

* Fix event action in automation editor

* Fix webpack resolve

* Update ha-automation-editor.js
This commit is contained in:
Paulus Schoutsen
2019-02-06 11:13:00 -08:00
committed by GitHub
parent f00de454d1
commit 504e4987b7
9 changed files with 101 additions and 76 deletions

View File

@@ -1,7 +1,7 @@
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { babelLoaderConfig } = require("../config/babel.js");
const { minimizer } = require("../config/babel.js");
const webpackBase = require("../config/babel.js");
const isProd = process.env.NODE_ENV === "production";
const chunkFilename = isProd ? "chunk.[chunkhash].js" : "[name].chunk.js";
@@ -32,9 +32,7 @@ module.exports = {
},
],
},
optimization: {
minimizer,
},
optimization: webpackBase.optimization,
plugins: [
new CopyWebpackPlugin([
"public",
@@ -63,9 +61,7 @@ module.exports = {
},
}),
].filter(Boolean),
resolve: {
extensions: [".ts", ".js", ".json"],
},
resolve: webpackBase.resolve,
output: {
filename: "[name].js",
chunkFilename: chunkFilename,