Skip to content

Commit

Permalink
Optimize build size
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Mar 9, 2019
1 parent e765994 commit fde6578
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 26 deletions.
36 changes: 14 additions & 22 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"baseUrl": "src",
"outDir": "out/src",
"target": "es2017",
"strict": true,
"noFallthroughCasesInSwitch": true,
"pretty": true,
"stripInternal": true,
"typeRoots": [
"node_modules/@types",
"typings/globals"
],
"lib": [
"es2017",
"esnext"
]
},
"exclude": [
"node_modules"
]
"compilerOptions": {
"module": "esnext",
"moduleResolution": "node",
"baseUrl": "src",
"outDir": "out/src",
"target": "es2018",
"strict": true,
"noFallthroughCasesInSwitch": true,
"pretty": true,
"stripInternal": true,
"typeRoots": ["node_modules/@types"],
"lib": ["es2018"]
},
"exclude": ["node_modules"]
}
6 changes: 2 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');

module.exports = {
mode: 'development',
mode: 'production',
entry: './src/phoenix.ts',
output: {
path: path.resolve(__dirname, 'out'),
Expand All @@ -11,8 +11,6 @@ module.exports = {
extensions: ['.ts', '.js'],
},
module: {
rules: [
{ test: /\.ts$/, loader: 'ts-loader' },
],
rules: [{test: /\.ts$/, loader: 'ts-loader'}],
},
};

0 comments on commit fde6578

Please sign in to comment.