29 lines
939 B
JavaScript
29 lines
939 B
JavaScript
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
productionSourceMap: false,
|
|
transpileDependencies: true,
|
|
devServer: {
|
|
allowedHosts: [
|
|
'mpc.book-online.ru',
|
|
'api.book-online.ru',
|
|
'tsd.book-online.ru',
|
|
],
|
|
},
|
|
configureWebpack : {
|
|
performance: {
|
|
hints:'warning',
|
|
// maximum volume of the inlet integer type origin (in bytes)
|
|
maxEntrypointSize: 50000000,
|
|
// generates a maximum volume of integer type file (300K bytes)
|
|
maxAssetSize: 700000000,
|
|
// only gives performance tips js file
|
|
// assetFilter: function(assetFilename) {
|
|
// // Provide the assertion function of the resource file name
|
|
// return assetFilename.endsWith('.css') || assetFilename.endsWith('.js') || assetFilename.endsWith('.ttf');
|
|
//
|
|
// }
|
|
}
|
|
}
|
|
|
|
})
|