mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-06 16:30:22 +08:00

* Initial create of vuetify2-basic folder * Change template descr of vuetify-basic to say Vuetify 1.5 * Get vuetify2 template installing vuetify v2.0 (but with styling probs) * Update App.vue, HelloWorld.vue for Vuetify v2 * Remove babel-polyfill, add mdi/font * fix: codacy corrections * fix: babel -> core-js, regenerator-runtime Co-authored-by: Michael Hipp <michael@redmule.com> Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
44 lines
786 B
JavaScript
44 lines
786 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,
|
|
host: 'localhost'
|
|
}
|
|
};
|