diff --git a/README.md b/README.md index 984053c..c272ca6 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,8 @@ Then teach webpack those magic globals: ```js // webpack.config.js +var webpack = require('webpack'); + // definePlugin takes raw strings and inserts them, so you can put strings of JS if you want. var definePlugin = new webpack.DefinePlugin({ __DEV__: JSON.stringify(JSON.parse(process.env.BUILD_DEV || 'true')),