Contest rule: ACM/ICPC

This commit is contained in:
masnn committed 2020-04-15 18:48:17 +08:00
1 parent d1ec9064fc
commit e06283c0cc
43 files changed
+158 -891

No files matched your search

+6 -9
View File
@@ -37,7 +37,7 @@ export default function (env = {}) {
return {
loader: 'babel-loader',
options: {
...require(root('package.json')).babelForProject, // eslint-disable-line
...require(root('package.json')).babelForProject, // eslint-disable-line
cacheDirectory,
},
};
@@ -165,11 +165,6 @@ export default function (env = {}) {
// don't include momentjs locale files
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new MonacoWebpackPlugin({
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
languages: ['cpp', 'csharp', 'java', 'javascript', 'python', 'rust', 'ruby', 'php', 'pascal', 'go'],
}),
new ExtractCssPlugin({
filename: 'vj4.css?[contenthash:10]',
allChunks: true,
@@ -204,9 +199,6 @@ export default function (env = {}) {
},
}),
env.production
? new UglifyJsPlugin({ sourceMap: true })
: function () { },
env.production
? new OptimizeCssAssetsPlugin()
: function () { },
@@ -228,6 +220,11 @@ export default function (env = {}) {
},
}),
new MonacoWebpackPlugin({
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
languages: ['cpp', 'csharp', 'java', 'javascript', 'python', 'rust', 'ruby', 'php', 'pascal', 'go'],
}),
// Finally, output asset hashes
new StaticManifestPlugin({
fileName: 'static-manifest.json',