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]`