require-error-handler-webpack-plugin
require-error-handler-webpack-plugin copied to clipboard
Adds error callback to require.ensure and AMD require calls.
loaderUtils.parseQuery will be remove so 'loaderUtils.parseQuery' change to 'loaderUtils.getOptions' ``` (node:68193) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56 parseQuery() will be replaced with getOptions() in...
### package.json ``` "require-error-handler-webpack-plugin": "^0.0.2", "webpack": "^2.2.1", "webpack-bundle-analyzer": "^2.2.1", "webpack-dev-middleware": "^1.10.0", "webpack-hot-middleware": "^2.16.1", "webpack-merge": "^2.6.1" ``` ### webpack.base.config.js ``` var requireErrorHandlerPlugin = require('require-error-handler-webpack-plugin') var JsonpMainTemplatePlugin = require('webpack/lib/JsonpMainTemplatePlugin') plugins: [ new...
I'm returning a 403 Forbidden for a webpack resource, and neither the success not the fail callbacks are being called. How do I return something that will trigger the error?
When using this with named chunks (and lazy), it will output the correct chunks, but the named chunks won't be respected in file names. This works fine when using the...