Skip to content

Commit

Permalink
Add style loader for react leaflet (#425)
Browse files Browse the repository at this point in the history
Co-authored-by: Shmuel Lotman<[email protected]>

Co-authored-by: Palak Bhojani <[email protected]>
  • Loading branch information
Palakp41 and Palak Bhojani authored Dec 15, 2020
1 parent f235ee2 commit f782b4d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions giraffe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"react-virtualized-auto-sizer": "^1.0.2",
"s2-geometry": "^1.2.10",
"sass-loader": "^10.0.3",
"style-loader": "^2.0.0",
"ts-jest": "^24.0.0",
"typescript": "3.8.3",
"unraw": "2.0.0",
Expand Down
8 changes: 8 additions & 0 deletions giraffe/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@ module.exports = {
},
{
test: /\.s?css$/i,
exclude: /leaflet\.css/,
use: ['css-loader', 'sass-loader'],
},
{
test: /leaflet\.css/,
use: [
{loader: 'style-loader'},
'css-loader',
],
},
{
test: /\.(png|svg|jpg|gif)$/,
use: [
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12845,6 +12845,14 @@ style-loader@^1.2.1:
loader-utils "^2.0.0"
schema-utils "^2.6.6"

style-loader@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-2.0.0.tgz#9669602fd4690740eaaec137799a03addbbc393c"
integrity sha512-Z0gYUJmzZ6ZdRUqpg1r8GsaFKypE+3xAzuFeMuoHgjc9KZv3wMyCRjQIWEbhoFSq7+7yoHXySDJyyWQaPajeiQ==
dependencies:
loader-utils "^2.0.0"
schema-utils "^3.0.0"

stylis-rule-sheet@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz#44e64a2b076643f4b52e5ff71efc04d8c3c4a430"
Expand Down

0 comments on commit f782b4d

Please sign in to comment.