From 23b3fe46bab63adde1e306ebe9650ccc0656d61b Mon Sep 17 00:00:00 2001 From: Stein Martin Hustad Date: Mon, 1 May 2017 18:38:14 +0200 Subject: [PATCH] Make the gatsby-plugin-sass work with 1.0 (#884) * Need index.js so plugin can be found * Make it work with 1.0 --- packages/gatsby-plugin-sass/.gitignore | 2 -- packages/gatsby-plugin-sass/index.js | 1 + packages/gatsby-plugin-sass/src/gatsby-node.js | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 packages/gatsby-plugin-sass/index.js diff --git a/packages/gatsby-plugin-sass/.gitignore b/packages/gatsby-plugin-sass/.gitignore index 8f4bd83260b71..4e2b171fba82d 100644 --- a/packages/gatsby-plugin-sass/.gitignore +++ b/packages/gatsby-plugin-sass/.gitignore @@ -1,3 +1 @@ -node_modules /gatsby-node.js -/index.js \ No newline at end of file diff --git a/packages/gatsby-plugin-sass/index.js b/packages/gatsby-plugin-sass/index.js new file mode 100644 index 0000000000000..172f1ae6a468c --- /dev/null +++ b/packages/gatsby-plugin-sass/index.js @@ -0,0 +1 @@ +// noop diff --git a/packages/gatsby-plugin-sass/src/gatsby-node.js b/packages/gatsby-plugin-sass/src/gatsby-node.js index 7bda40fb04c10..934345a04ca26 100644 --- a/packages/gatsby-plugin-sass/src/gatsby-node.js +++ b/packages/gatsby-plugin-sass/src/gatsby-node.js @@ -1,8 +1,6 @@ import ExtractTextPlugin from "extract-text-webpack-plugin" -exports.modifyWebpackConfig = ({ args }) => { - const { config, stage } = args - +exports.modifyWebpackConfig = ({ config, stage }) => { const cssModulesConf = `css?modules&minimize&importLoaders=1` const cssModulesConfDev = `${cssModulesConf}&sourceMap&localIdentName=[name]---[local]---[hash:base64:5]`