【webpack】IgnorePlugin
plugins: [ new HtmlWebpackPlugin(), new webpack.IgnorePlugin({ resourceRegExp: /^\.\/locale$/, contextRegExp: /moment$/ }) ]
忽略moment的语言文件
plugins: [ new HtmlWebpackPlugin(), new webpack.IgnorePlugin({ resourceRegExp: /^\.\/locale$/, contextRegExp: /moment$/ }) ]
忽略moment的语言文件