1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-30 09:20:02 +02:00

refactor(cursors): Use data-uris for cursors

I've switched us from using `file-loader` to `url-loader`. This will automatically convert local URL
imports to data URIs, which means the framework no longer needs to load them from a remote URL.

#207
This commit is contained in:
Trezy
2019-01-30 13:31:30 -06:00
parent b7b9a37203
commit 1b0db4ab1d
4 changed files with 3517 additions and 3516 deletions

View File

@@ -10,8 +10,7 @@ module.exports = {
},
{
test: /\.(jpe?g|png|gif|woff|woff2|eot|ttf|svg)(\?[a-z0-9=.]+)?$/,
loader: 'file-loader',
// loader: 'url-loader?limit=100000',
loader: 'url-loader',
},
],
},

7022
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -78,7 +78,8 @@
"stylelint-config-recess-order": "^2.0.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-prettier": "^1.0.5",
"stylelint-scss": "^3.3.1"
"stylelint-scss": "^3.3.1",
"url-loader": "^1.1.2"
},
"browserslist": [
"> 1%"

View File

@@ -5,8 +5,9 @@ $font-size: 16px !default;
$base-color: $color-black;
$background-color: $color-white;
$cursor-url: url(https://unpkg.com/nes.css/assets/cursor.png);
$cursor-click-url: url(https://unpkg.com/nes.css/assets/cursor-click.png);
$cursor-url: url(../assets/cursor.png);
$cursor-click-url: url(../assets/cursor-click.png);
$border-size: 0.25em;
$default-colors: (