|
@@ -4,7 +4,6 @@ const {
|
|
|
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
|
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
|
|
// 代码压缩
|
|
// 代码压缩
|
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
|
-const path = require('path')
|
|
|
|
|
const cdn = {
|
|
const cdn = {
|
|
|
js: [
|
|
js: [
|
|
|
`https://cdn.bootcdn.net/ajax/libs/vue/2.6.14/vue.min.js`,
|
|
`https://cdn.bootcdn.net/ajax/libs/vue/2.6.14/vue.min.js`,
|
|
@@ -14,6 +13,10 @@ const cdn = {
|
|
|
]
|
|
]
|
|
|
};
|
|
};
|
|
|
module.exports = defineConfig({
|
|
module.exports = defineConfig({
|
|
|
|
|
+ devServer:{
|
|
|
|
|
+ host: '192.168.100.185',
|
|
|
|
|
+ open:true
|
|
|
|
|
+ },
|
|
|
transpileDependencies: true,
|
|
transpileDependencies: true,
|
|
|
lintOnSave: false, //关闭eslint检查
|
|
lintOnSave: false, //关闭eslint检查
|
|
|
// 具体使用情况还需要看项目的配置
|
|
// 具体使用情况还需要看项目的配置
|