Skip to content

Commit

Permalink
momentjs压缩‘
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoranWong committed Oct 12, 2020
1 parent 8a3132e commit dc6cd5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var MpvuePlugin = require('webpack-mpvue-asset-plugin')
var glob = require('glob')
var CopyWebpackPlugin = require('copy-webpack-plugin')
var relative = require('relative')
var webpack = require('webpack');

function resolve (dir) {
return path.join(__dirname, '..', dir)
Expand Down Expand Up @@ -166,6 +167,7 @@ module.exports = {
to: path.resolve(__dirname, '../dist/static'),
ignore: ['.*', 'jssdk/*', 'images/icon/*.*', 'iview/*']
}
])
]),
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /zh-cn|us/),
]
}
2 changes: 1 addition & 1 deletion src/services/websocket/WebSocketService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Service from '../Service';
import Echo from 'laravel-echo'
import th from "element-ui/src/locale/lang/th";
// import th from "element-ui/src/locale/lang/th";

const io = require('weapp.socket.io');

Expand Down

0 comments on commit dc6cd5f

Please sign in to comment.