Last active
October 27, 2015 13:23
-
-
Save akre54/d7ebd8893128e4bf9235 to your computer and use it in GitHub Desktop.
Backbone deps test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
out.js* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Backbone = require('backbone'); | |
console.log(new Backbone.View); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "dep-test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Adam Krebs <[email protected]> (http://sberkmada.com/)", | |
"license": "MIT", | |
"dependencies": { | |
"backbone": "1.2.0", | |
"zepto": "0.0.4" | |
}, | |
"devDependencies": { | |
"exports-loader": "^0.6.2", | |
"webpack": "^1.9.11" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var webpackConfig = module.exports = { | |
devtool: 'source-map', | |
debug: true, | |
watch: true, | |
entry: { | |
out: __dirname + '/index' | |
}, | |
output: { | |
path: __dirname, | |
filename: '[name].js' | |
}, | |
module: { | |
loaders: [ | |
{ test: /zepto(\.min)?\.js$/, loader: "exports?Zepto; delete window.$; delete window.Zepto;" } | |
] | |
}, | |
resolve: { | |
alias: { | |
jquery$: "zepto/zepto.min.js" | |
} | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment