preserve-requirejs-webpack-plugin
v2.0.0
Published
Webpack plugin, to preserver requirejs.config()
Downloads
5
Readme
Preserve RequireJS Webpack Plugin
This plugin to Webpack preserves requirejs.config()
in Webpack 2 output
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 [email protected] --save-dev
Usage
In webpack.config.js
var webpack = require('webpack');
var KeepRequireJsPlugin = require('preserve-requirejs-webpack-plugin')
module.exports = {
...
plugins: [
new KeepRequireJsPlugin(),
]
};