3.0.0 • Published 7 years ago

wordpress-debug-webpack-plugin v3.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

wordpress-debug-webpack-plugin

NPM version Travis Build Status dependencies Status devDependencies Status Greenkeeper badge

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 to wp-config.php.
  • debug (optional) (default: true) boolean - Enable or disable debug.
  • runOnce (optional) (default: true) boolean - Enable or disable multiple run, useful for watch mode.

Related

Contribution

Feel free to push your code if you agree with publishing under the MIT license.

Changelog

License

3.0.0

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago