webpack-configurator
webpack-configurator copied to clipboard
Utility library for creating and extending Webpack configuration structures.
Cannot specify plugins that are written with strict mode classes: ``` js 'use strict'; class MyPlugin { constructor () {} apply (compiler) {} } module.exports = MyPlugin; ``` ``` /project/node_modules/webpack-configurator/lib/resolve/plugin.js:8...
Trying to use ExtractTextPlugin, but get the error `"loader" must be a string` ```js config.loader("sass", { test: /\.(sass|scss)$/, exclude: /\.module\.(sass|scss)$/, }, (c) => { c.loader = ExtractTextPlugin.extract({ fallback: 'style-loader', use:...
Would help catch typos in the config.
Webpack supports configuring a `cache` object. But resolve() creates a clone of the cache object, making it impossible to access the cached data afterwards. My workaround for this is to...
Would be cool if you could at a hook to the resolve method. For loaders and plugins this is possible using the callback. I have a need for it for...
See https://github.com/webpack/extract-text-webpack-plugin > There is also an extract function on the instance. You should use this if you have more than one ExtractTextPlugin. There is no way to get access...
Allow an alternative plugin syntax. Difference from original: - Plugin name shouldn't be required. - Passing arguments in an array is awkward. Better to just treat all arguments after the...
Provide a `print` method which uses the `prettyjson` module to print YAML-like output of the webpack config. **Why?** - If you print a normal config object it will not show...
It's rather tedious using functions when composing. For example: ``` js config.merge(function(current) { current.entry = "./app.entry.js"; return current; }); ``` I think it would be great to omit the return...