Skip to content

Commit

Permalink
remove sass support
Browse files Browse the repository at this point in the history
  • Loading branch information
jancajthaml committed May 14, 2024
1 parent b42664f commit c2b6fb2
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 230 deletions.
4 changes: 0 additions & 4 deletions cli/helpers/webpack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ function formatMessage(message) {
if (lines[1] && lines[1].indexOf("Module not found: ") === 0) {
lines = [lines[0], lines[1].replace("Error: ", "").replace("Module not found: Cannot find file:", "Cannot find file:")];
}
if (lines[1] && lines[1].match(/Cannot find module.+sass/)) {
lines[1] = "To import Sass files, you first need to install sass.\n";
lines[1] += "Run `npm install sass` or `yarn add sass` inside your workspace.";
}

message = lines.join("\n");
message = message.replace(/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm, "");
Expand Down
146 changes: 42 additions & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lastui/rocker",
"version": "0.20.1",
"version": "0.20.2",
"license": "Apache-2.0",
"author": "jan.cajthaml@gmail.com",
"homepage": "https://github.com/lastui/rocker#readme",
Expand Down Expand Up @@ -120,8 +120,6 @@
"prettier-package-json": "2.8.0",
"pretty-format": "29.7.0",
"redux-mock-store": "1.5.4",
"sass": "1.77.0",
"sass-loader": "14.2.1",
"source-map": "mozilla/source-map#master",
"style-loader": "4.0.0",
"stylelint": "16.5.0",
Expand Down
32 changes: 0 additions & 32 deletions webpack/config/module/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,38 +169,6 @@ config.module.rules.push(
},
],
},
{
test: /\.s[a|c]ss$/,
use: [
{
loader: "style-loader",
options: {
injectType: "singletonStyleTag",
attributes: {
id: `rocker-${settings.BUILD_ID}`,
},
},
},
{
loader: "css-loader",
options: {
sourceMap: true,
modules: false,
importLoaders: 0,
},
},
{
loader: "sass-loader",
options: {
implementation: require("sass"),
sassOptions: {
fiber: false,
},
sourceMap: true,
},
},
],
},
{
test: /\.(png|jpg|gif)$/i,
dependency: { not: ["url"] },
Expand Down
32 changes: 0 additions & 32 deletions webpack/config/module/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,38 +140,6 @@ config.module.rules.push(
},
],
},
{
test: /\.s[a|c]ss$/,
use: [
{
loader: "style-loader",
options: {
injectType: "singletonStyleTag",
attributes: {
id: `rocker-${settings.BUILD_ID}`,
},
},
},
{
loader: "css-loader",
options: {
sourceMap: false,
modules: false,
importLoaders: 0,
},
},
{
loader: "sass-loader",
options: {
implementation: require("sass"),
sassOptions: {
fiber: false,
},
sourceMap: false,
},
},
],
},
{
test: /\.(png|jpg|gif)$/i,
type: "asset/inline",
Expand Down
Loading

0 comments on commit c2b6fb2

Please sign in to comment.