Skip to content

Commit c2b6fb2

Browse files
authored
remove sass support
1 parent b42664f commit c2b6fb2

File tree

7 files changed

+43
-230
lines changed

7 files changed

+43
-230
lines changed

cli/helpers/webpack.mjs

-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ function formatMessage(message) {
5959
if (lines[1] && lines[1].indexOf("Module not found: ") === 0) {
6060
lines = [lines[0], lines[1].replace("Error: ", "").replace("Module not found: Cannot find file:", "Cannot find file:")];
6161
}
62-
if (lines[1] && lines[1].match(/Cannot find module.+sass/)) {
63-
lines[1] = "To import Sass files, you first need to install sass.\n";
64-
lines[1] += "Run `npm install sass` or `yarn add sass` inside your workspace.";
65-
}
6662

6763
message = lines.join("\n");
6864
message = message.replace(/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm, "");

package-lock.json

+42-104
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lastui/rocker",
3-
"version": "0.20.1",
3+
"version": "0.20.2",
44
"license": "Apache-2.0",
55
"author": "[email protected]",
66
"homepage": "https://github.com/lastui/rocker#readme",
@@ -120,8 +120,6 @@
120120
"prettier-package-json": "2.8.0",
121121
"pretty-format": "29.7.0",
122122
"redux-mock-store": "1.5.4",
123-
"sass": "1.77.0",
124-
"sass-loader": "14.2.1",
125123
"source-map": "mozilla/source-map#master",
126124
"style-loader": "4.0.0",
127125
"stylelint": "16.5.0",

webpack/config/module/development.js

-32
Original file line numberDiff line numberDiff line change
@@ -169,38 +169,6 @@ config.module.rules.push(
169169
},
170170
],
171171
},
172-
{
173-
test: /\.s[a|c]ss$/,
174-
use: [
175-
{
176-
loader: "style-loader",
177-
options: {
178-
injectType: "singletonStyleTag",
179-
attributes: {
180-
id: `rocker-${settings.BUILD_ID}`,
181-
},
182-
},
183-
},
184-
{
185-
loader: "css-loader",
186-
options: {
187-
sourceMap: true,
188-
modules: false,
189-
importLoaders: 0,
190-
},
191-
},
192-
{
193-
loader: "sass-loader",
194-
options: {
195-
implementation: require("sass"),
196-
sassOptions: {
197-
fiber: false,
198-
},
199-
sourceMap: true,
200-
},
201-
},
202-
],
203-
},
204172
{
205173
test: /\.(png|jpg|gif)$/i,
206174
dependency: { not: ["url"] },

webpack/config/module/production.js

-32
Original file line numberDiff line numberDiff line change
@@ -140,38 +140,6 @@ config.module.rules.push(
140140
},
141141
],
142142
},
143-
{
144-
test: /\.s[a|c]ss$/,
145-
use: [
146-
{
147-
loader: "style-loader",
148-
options: {
149-
injectType: "singletonStyleTag",
150-
attributes: {
151-
id: `rocker-${settings.BUILD_ID}`,
152-
},
153-
},
154-
},
155-
{
156-
loader: "css-loader",
157-
options: {
158-
sourceMap: false,
159-
modules: false,
160-
importLoaders: 0,
161-
},
162-
},
163-
{
164-
loader: "sass-loader",
165-
options: {
166-
implementation: require("sass"),
167-
sassOptions: {
168-
fiber: false,
169-
},
170-
sourceMap: false,
171-
},
172-
},
173-
],
174-
},
175143
{
176144
test: /\.(png|jpg|gif)$/i,
177145
type: "asset/inline",

0 commit comments

Comments
 (0)