Skip to content

Commit

Permalink
remove fs dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Nov 20, 2015
1 parent 8cf0631 commit 18f0fd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"debug": "~2.1.0",
"inherits": "2.0.1",
"qs": "^4.0.0",
"fs": "0.0.2",
"json-loader": "0.5.1",
"wpcom": "4.8.1",
"wpcom-oauth-cors": "^1.0.0",
Expand Down
8 changes: 8 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
module.exports = {
entry: __dirname + '/index.js',

node: {
fs: 'empty'
},

output: {
path: __dirname + '/dist',
filename: 'wpcom-unpublished.js',
libraryTarget: 'var',
library: 'WPCOMUnpublished'
},

module: {
loaders: [
{
Expand All @@ -14,8 +20,10 @@ module.exports = {
}
]
},

resolve: {
extensions: ['', '.js']
},

devtool: 'sourcemap'
};

0 comments on commit 18f0fd9

Please sign in to comment.