Skip to content

Commit 774a4b8

Browse files
committed
[Webpack/Moment] Include all moment locales
1 parent 0726e00 commit 774a4b8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

webpack.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,4 @@ Encore
2121
.addStyleEntry('css/admin', ['./app/Resources/assets/scss/admin.scss'])
2222
;
2323

24-
var config = Encore.getWebpackConfig();
25-
26-
config.plugins.push(new webpack.ContextReplacementPlugin(
27-
/moment[\/\\]locale$/,
28-
/en|fr|de|es|cs|nl|ru|uk|ro|pt-br|pl|it|ja|id|ca|sl|hr|zh-cn/
29-
));
30-
31-
module.exports = config;
24+
module.exports = Encore.getWebpackConfig();

0 commit comments

Comments
 (0)