Skip to content

Commit

Permalink
Merge pull request #3 from indigotree/node-sass-json-importer
Browse files Browse the repository at this point in the history
Add node-sass-json-importer package
  • Loading branch information
Christopher Geary authored Jun 30, 2021
2 parents e5d5688 + 8232c04 commit ebfebd8
Show file tree
Hide file tree
Showing 3 changed files with 3,114 additions and 40 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const { WebpackManifestPlugin } = require("webpack-manifest-plugin");
const DependencyExtractionWebpackPlugin = require("@wordpress/dependency-extraction-webpack-plugin");
const jsonImporter = require("node-sass-json-importer");

const isDev = process.env.NODE_ENV !== "production";

Expand All @@ -25,8 +26,8 @@ module.exports = {
use: {
loader: "babel-loader",
options: {
presets: ["@wordpress/babel-preset-default"]
}
presets: ["@wordpress/babel-preset-default"],
},
},
},
{
Expand All @@ -47,6 +48,11 @@ module.exports = {
},
{
loader: "sass-loader",
options: {
sassOptions: {
importer: jsonImporter(),
},
},
},
],
},
Expand Down
Loading

0 comments on commit ebfebd8

Please sign in to comment.