mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 07:29:56 +08:00

* [313-remote-conn] feat: compute wsURL based on window.location * [313-remote-conn] feat: allow any host to connect to vue server removing the 'host: "localhost"' specification causes the development server to listen on all interfaces. * [313-remote-conn] feat: allow any host to connect to angular dev server * test: reinject tabs Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
43 lines
841 B
JavaScript
43 lines
841 B
JavaScript
let cssConfig = {};
|
|
|
|
if (process.env.NODE_ENV == "production") {
|
|
cssConfig = {
|
|
extract: {
|
|
filename: "[name].css",
|
|
chunkFilename: "[name].css"
|
|
}
|
|
};
|
|
}
|
|
|
|
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: cssConfig,
|
|
configureWebpack: {
|
|
output: {
|
|
filename: "[name].js"
|
|
},
|
|
optimization: {
|
|
splitChunks: false
|
|
}
|
|
},
|
|
devServer: {
|
|
disableHostCheck: true
|
|
}
|
|
};
|