Skip to content

Commit

Permalink
build: replaces node-sass with sass (#381)
Browse files Browse the repository at this point in the history
* build: replaces node-sass with sass

* chore: config
  • Loading branch information
mcataford authored Aug 4, 2021
1 parent b63e09e commit b7ed582
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 233 deletions.
8 changes: 7 additions & 1 deletion .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ module.exports = {
use: [
'style-loader',
'css-loader',
'sass-loader?outputStyle=expanded',
{
loader: 'sass-loader',
options: {
implementation: require('sass'),
sassOptions: { outputStyle: 'expanded' }
}
}
],
},
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"jsdom": "^9.2.1",
"lint-staged": "^3.2.6",
"mini-css-extract-plugin": "^0.4.5",
"node-sass": "^4.2.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"packwatch": "^1.0.0",
"postcss-safe-parser": "^4.0.1",
Expand All @@ -103,6 +102,7 @@
"react-dom": "^16.4.1",
"react-hot-loader": "^1.3.0",
"rimraf": "2.5.4",
"sass": "^1.37.4",
"sass-loader": "^7.1.0",
"semantic-release": "^17.0.4",
"sinon": "^1.17.4",
Expand All @@ -114,7 +114,7 @@
},
"scripts": {
"prebuild": "yarn run clean",
"build": "BABEL_ENV=production babel src -d dist && cp -r ./src/*.png ./dist && node-sass ./src/intlTelInput.scss ./dist/main.css",
"build": "BABEL_ENV=production babel src -d dist && cp -r ./src/*.png ./dist && sass ./src/intlTelInput.scss ./dist/main.css",
"clean": "rimraf dist",
"start": "start-storybook -p 4000 -c .storybook",
"deploy:dryrun": "storybook-to-ghpages --dry-run",
Expand Down
Loading

0 comments on commit b7ed582

Please sign in to comment.