Skip to content

Commit

Permalink
Merge pull request #5 from Dashlane/chore/update-webpack
Browse files Browse the repository at this point in the history
chore(build): update to webpack 4
  • Loading branch information
highfivedenis authored Nov 7, 2018
2 parents 537cc64 + aee8e1b commit 88de635
Show file tree
Hide file tree
Showing 4 changed files with 883 additions and 1,448 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
"mocha": "^4.0.1",
"should": "^13.1.3",
"sinon": "^4.1.5",
"ts-loader": "^3.2.0",
"tslint": "^5.6.0",
"ts-loader": "^5.2.2",
"ts-node": "^3.3.0",
"tslint": "^5.6.0",
"typescript": "^3.1.2",
"typescript-formatter": "^7.0.0",
"webpack": "^3.10.0",
"webpack": "^4.23.1",
"webpack-cli": "^3.1.2",
"ws": "^3.3.2"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": ".",
"outDir": "./build",
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path')

module.exports = {
mode: "production",
entry: {
'index': ['./src/index.ts']
},
Expand All @@ -22,6 +23,6 @@ module.exports = {
target: 'web',
resolve: {
extensions: ['.json', '.js', '.ts'],
modules: ['node_modules', 'src']
modules: ['node_modules', 'src'],
},
}
Loading

0 comments on commit 88de635

Please sign in to comment.