Skip to content

Commit

Permalink
Make the gatsby-plugin-sass work with 1.0 (gatsbyjs#884)
Browse files Browse the repository at this point in the history
* Need index.js so plugin can be found

* Make it work with 1.0
  • Loading branch information
smh authored and KyleAMathews committed May 1, 2017
1 parent 77b15a9 commit 23b3fe4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/gatsby-plugin-sass/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
node_modules
/gatsby-node.js
/index.js
1 change: 1 addition & 0 deletions packages/gatsby-plugin-sass/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
4 changes: 1 addition & 3 deletions packages/gatsby-plugin-sass/src/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -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]`

Expand Down

0 comments on commit 23b3fe4

Please sign in to comment.