Files
Picsur/frontend/custom-webpack.config.js

24 lines
495 B
JavaScript
Raw Normal View History

import webpack from 'webpack';
2022-12-27 16:56:59 +01:00
// import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
export default {
2022-12-27 16:56:59 +01:00
plugins: [
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /en/),
// new BundleAnalyzerPlugin(),
],
2023-06-02 16:35:31 +02:00
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: [['@babel/preset-env']],
2023-06-02 16:35:31 +02:00
},
},
},
],
},
};