Picsur/frontend/custom-webpack.config.js

24 lines
495 B
JavaScript
Raw Permalink Normal View History

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