diff --git a/webpack.dev.js b/webpack.dev.js index 7ba9280..0c52f4e 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -1,7 +1,15 @@ +const path = require('path'); const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); module.exports = merge(common, { - mode: "production", - devtool: "source-map", + mode: "development", + devtool: "inline-source-map", + devSources: { + static: { + directory: path.join(__dirname, "src"), + }, + compress: true, + port: 9001, + } }) diff --git a/webpack.prod.js b/webpack.prod.js index 0c52f4e..7ba9280 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -1,15 +1,7 @@ -const path = require('path'); const { merge } = require('webpack-merge'); const common = require('./webpack.common.js'); module.exports = merge(common, { - mode: "development", - devtool: "inline-source-map", - devSources: { - static: { - directory: path.join(__dirname, "src"), - }, - compress: true, - port: 9001, - } + mode: "production", + devtool: "source-map", })