diff options
author | jhnns <johannes.ewald@peerigon.com> | 2013-10-01 02:25:05 +0400 |
---|---|---|
committer | jhnns <johannes.ewald@peerigon.com> | 2013-10-01 02:25:05 +0400 |
commit | a3c91fd7bbdcdf5b2edce66bb1431b50b77b963f (patch) | |
tree | 6e6fc41cd57c2e211d3ce735bd56209c541cb8cd /lib/bundlers/webpack/configureWebpack.js | |
parent | f9adaa4bf258a66f0ee09de534b298f1d680c877 (diff) |
- removed client-side bundlers (for webpack support take a look at https://github.com/jhnns/rewire-webpack)
Diffstat (limited to 'lib/bundlers/webpack/configureWebpack.js')
-rw-r--r-- | lib/bundlers/webpack/configureWebpack.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/bundlers/webpack/configureWebpack.js b/lib/bundlers/webpack/configureWebpack.js deleted file mode 100644 index 0738e16..0000000 --- a/lib/bundlers/webpack/configureWebpack.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; // run code in ES5 strict mode - -/** - * Configures webpack so it can be used with rewire. Make sure that the options aren't modified - * after calling this function. It's important that the rewire()-postLoader is the last loader called on a module. - * - * @see https://github.com/webpack/webpack - * - * @param {Object} options a webpack option object - */ -function configureWebpack(options) { - console.log("(DEPRECATED) rewire itself doesn't support webpack anymore. Please use rewire-webpack (https://github.com/jhnns/rewire-webpack)"); - - options.resolve = options.resolve || {}; - options.postLoaders = options.postLoaders || []; - options.resolve.postprocess = options.resolve.postprocess || {}; - options.resolve.postprocess.normal = options.resolve.postprocess.normal || []; - - // Registering the postLoader for injecting the special rewire code - options.postLoaders.push(require("./webpackPostLoader.js")); - - // Registering the postProcessor for resolving paths - options.resolve.postprocess.normal.push(require("./webpackPostProcessor.js")); -} - -module.exports = configureWebpack;
\ No newline at end of file |