Closed biscoe916 closed 8 years ago
@biscoe916 It is:
npm install arrive --save
module.loaders
add this: { test: require.resolve('arrive'), loader: 'imports?this=>window' }
so that it can inject the window object in the module (this was the problem with webpack + arrive)require('arrive')
Don't forget to install https://github.com/webpack/imports-loader
If there is a problem with jquery you might need to use ProvidePlugin too:
new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery', 'window.$': 'jquery' })
I'm going to close as it seems like it's possible. If there's an issue you can reopen it.
Would love to be able to use this with webpack. Is that possible?