reassign-angular-loader
v3.0.0
Published
yet another way to have more than one angularjs app on the same page
Downloads
7
Readme
reassign-angular-loader
Yet another way to run more than one angular@1
app on the same page.
My use case: I develop a widget on top of [email protected]
which includes a few dependencies rely on window.angular
(ng-onload, angular-once, ...),
which is not acceptable as the widget intended to be included on 3rd party sites.
yarn -D reassign-angular-loader
webpack.config.js
const webpack = require('webpack')
module.exports = {
/* ... */
module: {
loaders: [{
use: 'reassign-angular-loader',
test: '*.js'
}]
}
}