require-js-plugins-loader
v0.2.1
Published
A webpack loader to lazy load RequireJS plugins
Downloads
12
Readme
require-js-plugins-loader
This library attempts to simulate Require.js plugins within webpack, it is still in very early stage, but you can try use it like this:
var RequirejsPluginsLoaderPlugin = require('require-js-plugins-loader/Plugin');
module.exports = {
entry: './index.js',
output: {
path: __dirname,
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.js$/, loader: 'require-js-plugins' }
]
},
requirejsPlugins: {
plugins: ['myPlugin'] // add requirejs plugins to be parsed here
},
plugins: [
new RequirejsPluginsLoaderPlugin()
]
}