提交 f7ca3cc5 作者: 毛细亚

初始化

上级 cf7dc5f0
......@@ -5,6 +5,7 @@
"h": "cross-env ENVIROMENT=highly webpack"
},
"dependencies": {
"moment": "^2.29.1",
"webpack": "^5.64.0"
},
"devDependencies": {
......
// import moment from 'moment'
// // 引入中文
// import 'moment/locale/zh-cn'
// // 设置中文
// moment.locale('zh-cn');
// let momentStr = moment().subtract(10, 'days').calendar();
// console.log('现在时间:', momentStr);
// import dome from './dome'
let obj = {name:'小明',age:'12',action(){
console.log('[ 在上学 ]')
console.log('[ 在上学 ]',demo)
}}
obj.action()
\ No newline at end of file
......@@ -49,7 +49,9 @@ module.exports={
entry,
output,
plugins:[
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/node_modules\/moment\//,
}),
new webpack.NoEmitOnErrorsPlugin(),
new CleanWebpackPlugin( {
root: resolve(""), // 设置根节点
......@@ -57,7 +59,8 @@ module.exports={
dry: false,
}),
new WebpackObfuscator (ObfuscatorType),
// new webpack.IgnorePlugin(/\.\/locale/, /moment/)
// 忽略解析三方包里插件
]
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论