Ghost/ghost/portal/webpack.config.js

27 lines
609 B
JavaScript
Raw Normal View History

2020-04-20 09:27:08 +03:00
const path = require('path');
const glob = require('glob');
module.exports = {
mode: 'production',
2020-04-20 09:27:08 +03:00
entry: {
'bundle.js': glob.sync('build/static/?(js|css)/main.*.?(js|css)').map(f => path.resolve(__dirname, f))
},
output: {
filename: 'portal.min.js',
path: __dirname + '/umd'
2020-04-20 09:27:08 +03:00
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}
]
},
plugins: [],
performance: {
hints: false,
maxEntrypointSize: 560,
maxAssetSize: 5600
}
2020-04-20 09:27:08 +03:00
};