Skip to content

Commit ad22986

Browse files
committed
Merge pull request #64 from parallaxinc/dedupe
add dedupe plugin and source maps for development
2 parents ed10673 + 3d024ab commit ad22986

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ node_modules
3030
.DS_Store
3131

3232
# Generated files
33-
bundle.js
34-
dist/
33+
/bundle.js
34+
/bundle.js.map
35+
/dist/

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
var path = require('path');
44

5+
var webpack = require('webpack');
6+
57
var shouldWatch = (process.argv.indexOf('--watch') !== -1);
68

79
module.exports = {
10+
devtool: 'source-map',
811
entry: './client.js',
912
output: {
1013
path: __dirname,
@@ -39,6 +42,9 @@ module.exports = {
3942
}
4043
]
4144
},
45+
plugins: [
46+
new webpack.optimize.DedupePlugin()
47+
],
4248
resolveLoader: {
4349
// this is a workaround for loaders being applied
4450
// to linked modules

0 commit comments

Comments
 (0)