Skip to content

Instantly share code, notes, and snippets.

@anotherZero
Forked from rap2hpoutre/webpack.mix.js
Created April 27, 2017 01:02
Show Gist options
  • Save anotherZero/20e21081b62b4be1623bafd6f59b39a9 to your computer and use it in GitHub Desktop.
Save anotherZero/20e21081b62b4be1623bafd6f59b39a9 to your computer and use it in GitHub Desktop.
// ...
let webpack = require("webpack");
mix.webpackConfig({
plugins: [
// Choose the language you want to keep (Ex: "fr")
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /fr/)
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment