Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 884 Bytes

README.md

File metadata and controls

29 lines (26 loc) · 884 Bytes

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