Cleaning up

- Remove unnecessary '' in webpack config
- Remove unnecessary function from zuul.config.js
- Remove duplicate webpack dependency
This commit is contained in:
Diga Widyaprana
2016-02-04 18:50:48 +08:00
parent 182dacf35c
commit cd25131ef2
3 changed files with 1 additions and 14 deletions

View File

@@ -32,7 +32,6 @@
"parsejson": "0.0.1",
"parseqs": "0.0.2",
"parseuri": "0.0.4",
"webpack": "1.12.11",
"ws": "1.0.1",
"xmlhttprequest-ssl": "1.5.1",
"yeast": "0.1.2"

View File

@@ -7,7 +7,7 @@ module.exports = {
libraryTarget: "umd"
},
externals: {
'global': glob()
global: glob()
},
module: {
loaders: [{

View File

@@ -10,15 +10,3 @@ module.exports = {
builder: 'zuul-builder-webpack',
webpack: require('./support/webpack.config.js')
};
/**
* Populates `global`.
*
* @api private
*/
function glob(){
return 'typeof self !== "undefined" ? self : '
+ 'typeof window !== "undefined" ? window : '
+ 'typeof global !== "undefined" ? global : {}';
}