Skip to content

Commit

Permalink
Misc. Optimizations to tsconfig + webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
henrynguyen5 committed Sep 26, 2017
1 parent af84a58 commit 70cba3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
12 changes: 3 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,15 @@
"strictNullChecks": true,
"module": "esnext",
"jsx": "react",
"target": "es5",
"target": "es2015",
"allowJs": true,
"baseUrl": "./common/",
"lib": [
"es2017",
"dom"
],
"lib": ["es2017", "dom"],
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"noEmitOnError": false
},
"include": [
"./common/",
"./node_modules/types-bn/index.d.ts"
],
"include": ["./common/", "./node_modules/types-bn/index.d.ts"],
"awesomeTypescriptLoaderOptions": {
"transpileOnly": true
}
Expand Down
7 changes: 5 additions & 2 deletions webpack_config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ base.module.loaders.push(
}
);

base.plugins.push(
base.plugins.unshift(
new webpack.DllReferencePlugin({
context: path.join(__dirname, '../common'),
manifest: require('../dll/vendor-manifest.json')
}),
})
);

base.plugins.push(
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development')
}),
Expand Down

0 comments on commit 70cba3a

Please sign in to comment.