2.0.0 • Published 7 years ago

preserve-requirejs-webpack-plugin v2.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Preserve RequireJS Webpack Plugin

This plugin to Webpack preserves requirejs.config() in Webpack 2 output

npmjs

Install

npm install preserve-requirejs-webpack-plugin --save-dev

If you're still using Webpack 1.x

This plugin, from version 2.x.x, is targeted for Webpack 2.x. To use with Webpack 1.x use the following to install

npm install preserve-requirejs-webpack-plugin@1.0.1 --save-dev

Usage

In webpack.config.js

var webpack = require('webpack');

var KeepRequireJsPlugin = require('preserve-requirejs-webpack-plugin')

module.exports = {
    ...
    plugins: [
        new KeepRequireJsPlugin(),
    ]
};
2.0.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago