1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-24 21:04:57 +00:00

Remove source maps and adjust targets

This commit is contained in:
tobspr
2020-05-15 09:09:37 +02:00
parent b64bbc8132
commit c3e0cb5a46
5 changed files with 38 additions and 15 deletions

View File

@@ -61,7 +61,8 @@ module.exports = ({
// Display bailout reasons
optimizationBailout: true,
},
devtool: "source-map",
// devtool: "source-map",
devtool: false,
resolve: {
alias: {
"global-compression": path.resolve(__dirname, "..", "src", "js", "core", "lzstring.js"),
@@ -85,7 +86,7 @@ module.exports = ({
minimizer: [
new TerserPlugin({
parallel: true,
sourceMap: true,
sourceMap: false,
cache: false,
terserOptions: {
ecma: es6 ? 6 : 5,
@@ -178,6 +179,10 @@ module.exports = ({
patterns: ["../src/js/**/*.js"],
}),
// new webpack.SourceMapDevToolPlugin({
// filename: "[name].map",
// publicPath: "/v/" + utils.getRevision() + "/",
// }),
// new ReplaceCompressBlocks()
// new webpack.optimize.ModuleConcatenationPlugin()
// new WebpackDeepScopeAnalysisPlugin()
@@ -242,13 +247,23 @@ module.exports = ({
},
{
test: /\.worker\.js$/,
use: {
loader: "worker-loader",
options: {
fallback: false,
inline: true,
use: [
{
loader: "worker-loader",
options: {
fallback: false,
inline: true,
},
},
},
{
loader: "babel-loader?cacheDirectory",
options: {
configFile: require.resolve(
es6 ? "./babel-es6.config.js" : "./babel.config.js"
),
},
},
],
},
{
test: /\.md$/,