mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 18:29:53 +08:00
36 lines
709 B
JavaScript
36 lines
709 B
JavaScript
|
|
module.exports = {
|
|
chainWebpack: (config) => {
|
|
let limit = 9999999999999999;
|
|
config.module
|
|
.rule('images')
|
|
.test(/\.(png|gif|jpg)(\?.*)?$/i)
|
|
.use('url-loader')
|
|
.loader('url-loader')
|
|
.tap(options => Object.assign(options, { limit: limit }));
|
|
config.module
|
|
.rule('fonts')
|
|
.test(/\.(woff2?|eot|ttf|otf|svg)(\?.*)?$/i)
|
|
.use('url-loader')
|
|
.loader('url-loader')
|
|
.options({
|
|
limit: limit,
|
|
})
|
|
},
|
|
css: {
|
|
extract: {
|
|
filename: '[name].css',
|
|
chunkFilename: '[name].css',
|
|
}
|
|
},
|
|
configureWebpack: {
|
|
output: {
|
|
filename: '[name].js',
|
|
},
|
|
optimization: {
|
|
splitChunks: false
|
|
}
|
|
},
|
|
|
|
}
|