You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/webpack/webpack.production.js

20 lines
407 B

const { merge } = require('webpack-merge');
const commonConfig = require('./webpack.common.js');
module.exports = merge(commonConfig, {
mode: 'production',
devtool: 'source-map',
module: {
rules: [
{
test: /\.(woff|woff2|eot|ttf|ico)$/,
type: 'asset/inline',
},
{
test: /\.(gif|png|jpe?g|svg)$/i,
type: 'asset/resource',
},
],
},
});