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

30 lines
590 B

const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.common.js');
module.exports = webpackMerge(commonConfig, {
mode: 'production',
module: {
rules: [
{
test: /\.(woff|woff2|eot|ttf|ico)$/,
use: [
{
loader: 'url-loader',
options: { limit: 25000 }
}
]
},
{
test: /\.(gif|png|jpe?g|svg)$/i,
use: [
'file-loader',
{
loader: 'image-webpack-loader',
options: {}
}
]
}
]
}
});