Created
November 5, 2015 03:43
-
-
Save kainoku/3f14dfe3a81d6e816446 to your computer and use it in GitHub Desktop.
webpack config for angular-localForage
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
| BowerWebpackPlugin = require 'bower-webpack-plugin' | |
| path = require 'path' | |
| module.exports = | |
| resolve: | |
| root: [path.join(__dirname, 'bower_components')] | |
| moduleDirectories: ['bower_components'] | |
| extensions: ['', '.js', '.webpack.js', '.web.js'] | |
| module: | |
| loaders: [ | |
| {test: /angular\.js$/, loader: 'exports?angular' } | |
| {test: /localforage\.js$/, loaders: ['exports?window.localforage', 'script'] } | |
| {test: /angular-localForage\.js$/, loader: 'imports?this=>{angular: angular}' } | |
| ] | |
| plugins: [ | |
| new BowerWebpackPlugin() | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this! 👍