mirror of https://github.com/portainer/portainer
31 lines
624 B
JavaScript
31 lines
624 B
JavaScript
const webpackMerge = require('webpack-merge');
|
|
const commonConfig = require('./webpack.common.js');
|
|
|
|
module.exports = webpackMerge(commonConfig, {
|
|
mode: 'production',
|
|
devtool: 'source-map',
|
|
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: {},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
});
|