mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Filter out some modules (#1198)
This commit is contained in:
parent
d1fcdfd5a3
commit
0edf06bfb9
1
src/util/empty.js
Normal file
1
src/util/empty.js
Normal file
@ -0,0 +1 @@
|
||||
/* empty file that we alias some files to that we don't want to include */
|
@ -44,6 +44,18 @@ function createConfig(isProdBuild, latestBuild) {
|
||||
__VERSION__: JSON.stringify(VERSION),
|
||||
}),
|
||||
new CopyWebpackPlugin(copyPluginOpts),
|
||||
// Ignore moment.js locales
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
// Color.js is bloated, it contains all color definitions for all material color sets.
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
/@polymer\/paper-styles\/color\.js$/,
|
||||
path.resolve(__dirname, 'src/util/empty.js')
|
||||
),
|
||||
// Ignore roboto pointing at CDN. We use local font-roboto-local.
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
/@polymer\/font-roboto\/roboto\.js$/,
|
||||
path.resolve(__dirname, 'src/util/empty.js')
|
||||
),
|
||||
];
|
||||
|
||||
if (latestBuild) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user