1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00

🐛 Fix missing style-loader (#3)

This commit is contained in:
Steffo 2021-08-28 05:28:28 +02:00
parent cd85679bc2
commit 7c714ad848
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 23 additions and 10 deletions

View file

@ -61,6 +61,7 @@
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-scripts": "4.0.3", "react-scripts": "4.0.3",
"style-loader": "^3.2.1",
"typescript": "^4.1.2", "typescript": "^4.1.2",
"webpack": "^5.51.1", "webpack": "^5.51.1",
"webpack-cli": "^4.8.0" "webpack-cli": "^4.8.0"

View file

@ -3,7 +3,7 @@ const path = require("path")
module.exports = { module.exports = {
// Mode: setting this to development preconfigure webpack with some defaults // Mode: setting this to development preconfigure webpack with some defaults
mode: "production", mode: "development",
// Loaders: these allow various non-js filetypes to be imported // Loaders: these allow various non-js filetypes to be imported
module: { module: {
@ -11,19 +11,26 @@ module.exports = {
{ {
test: /[.]css$/, test: /[.]css$/,
exclude: /node_modules/, exclude: /node_modules/,
use: [{ use: [
loader: "css-loader", {
}], loader: "style-loader"
},
{
loader: "css-loader"
},
],
}, },
{ {
test: /[.]js$/, test: /[.]js$/,
exclude: /node_modules/, exclude: /node_modules/,
use: [{ use: [
loader: "babel-loader", {
options: { loader: "babel-loader",
presets: ["@babel/preset-env"] options: {
}, presets: ["@babel/preset-env"]
}], },
}
],
}, },
{ {
test: /[.]jsx$/, test: /[.]jsx$/,

View file

@ -13499,6 +13499,11 @@ style-loader@1.3.0, style-loader@^1.3.0:
loader-utils "^2.0.0" loader-utils "^2.0.0"
schema-utils "^2.7.0" schema-utils "^2.7.0"
style-loader@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.2.1.tgz#63cb920ec145c8669e9a50e92961452a1ef5dcde"
integrity sha512-1k9ZosJCRFaRbY6hH49JFlRB0fVSbmnyq1iTPjNxUmGVjBNEmwrrHPenhlp+Lgo51BojHSf6pl2FcqYaN3PfVg==
style-to-object@0.3.0, style-to-object@^0.3.0: style-to-object@0.3.0, style-to-object@^0.3.0:
version "0.3.0" version "0.3.0"
resolved "https://registry.yarnpkg.com/style-to-object/-/style-to-object-0.3.0.tgz#b1b790d205991cc783801967214979ee19a76e46" resolved "https://registry.yarnpkg.com/style-to-object/-/style-to-object-0.3.0.tgz#b1b790d205991cc783801967214979ee19a76e46"