From 444b762acbe9efc01248af829bfeff5c74d6378a Mon Sep 17 00:00:00 2001 From: Zach Silveira Date: Fri, 27 Apr 2018 13:34:54 -0400 Subject: [PATCH] Inject webpack for access in your own projects when using custom config --- config/load-custom-config.js | 3 ++- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/load-custom-config.js b/config/load-custom-config.js index 9f80b0d..8f4900c 100644 --- a/config/load-custom-config.js +++ b/config/load-custom-config.js @@ -1,9 +1,10 @@ //Load custom babel and webpack config +const webpack = require('webpack'); module.exports = () => { let customConfig = {}; try { - customConfig = require(process.cwd() + '/gutenblock.config'); + customConfig = require(process.cwd() + '/gutenblock.config')(webpack); console.log('Using custom configuration'); } catch (e) { console.log('Using default configuration'); diff --git a/package-lock.json b/package-lock.json index 73e2679..2ba4b59 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gutenblock", - "version": "0.4.1", + "version": "0.5.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5fd4aa6..2d26d64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gutenblock", - "version": "0.5.2", + "version": "0.6.0", "description": "", "main": "index.js", "scripts": {