diff --git a/package.json b/package.json index c7e31ef9..e9c7e806 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ }, "scripts": { "package": "webpack", - "package-prod": "webpack --config webpack.prod.js", "start": "node demo/start", "start-debug": "node --inspect-brk demo/start", "start-zmodem": "node demo/zmodem/app", @@ -68,7 +67,7 @@ "prebuild": "tsc -b ./src/tsconfig.all.json", "build": "gulp build", "prepare": "npm run prebuild", - "prepublishOnly": "npm run package-prod", + "prepublishOnly": "npm run package", "coveralls": "nyc report --reporter=text-lcov | coveralls", "watch": "tsc -b -w ./src/tsconfig.all.json --preserveWatchOutput" } diff --git a/webpack.config.js b/webpack.config.js index a27bdcb2..185ba317 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,24 +7,12 @@ const path = require('path'); module.exports = { entry: './out/public/Terminal.js', - devtool: 'inline-source-map', - module: { - rules: [ - { - test: /\.js$/, - use: ["source-map-loader"], - enforce: "pre", - exclude: /node_modules/ - } - ] - }, resolve: { modules: ['./node_modules'], extensions: [ '.js' ], alias: { common: path.resolve('./out/common'), - core: path.resolve('./out/core'), - ui: path.resolve('./out/ui') + core: path.resolve('./out/core') } }, output: { @@ -33,6 +21,5 @@ module.exports = { library: 'Terminal', libraryTarget: 'umd' }, - mode: 'development', - watch: true + mode: 'production' }; diff --git a/webpack.prod.js b/webpack.prod.js deleted file mode 100644 index 185ba317..00000000 --- a/webpack.prod.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) 2019 The xterm.js authors. All rights reserved. - * @license MIT - */ - -const path = require('path'); - -module.exports = { - entry: './out/public/Terminal.js', - resolve: { - modules: ['./node_modules'], - extensions: [ '.js' ], - alias: { - common: path.resolve('./out/common'), - core: path.resolve('./out/core') - } - }, - output: { - filename: 'xterm.js', - path: path.resolve('./lib'), - library: 'Terminal', - libraryTarget: 'umd' - }, - mode: 'production' -};