Skip to content

rogeriochaves/require-js-plugins-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

require-js-plugins-loader

Build Status npm

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()
  ]
}

About

A webpack loader to lazy load RequireJS plugins

Resources

Stars

Watchers

Forks

Packages

No packages published