3.0.0 • Published 5 years ago
reassign-angular-loader v3.0.0
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 angular@1.7
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'
}]
}
}