wordpress-debug-webpack-plugin
v3.0.0
Published
Enable or disable Wordpress debug using webpack
Downloads
29
Readme
wordpress-debug-webpack-plugin
Enable or disable Wordpress debug using webpack
Install
npm install --save-dev wordpress-debug-webpack-plugin
Usage
Enable debug:
import WordpressDebugWebpackPlugin from 'wordpress-debug-webpack-plugin';
export default {
plugins: [
new WordpressDebugWebpackPlugin({
wpConfigPath: 'path/to/wp-config.php',
debug: true
})
]
};
Disable debug:
import WordpressDebugWebpackPlugin from 'wordpress-debug-webpack-plugin';
export default {
plugins: [
new WordpressDebugWebpackPlugin({
wpConfigPath: 'path/to/wp-config.php',
debug: false
})
]
};
API
wpConfigPath
(require)string
- Path towp-config.php
.debug
(optional) (default:true
)boolean
- Enable or disable debug.runOnce
(optional) (default:true
)boolean
- Enable or disable multiple run, useful for watchmode
.
Related
- wordpress-debug - Api for this package.
Contribution
Feel free to push your code if you agree with publishing under the MIT license.