Moved icon to assets, added alias to this folder

This commit is contained in:
Dmitriy Shishkov 2021-07-15 18:36:08 +05:00
parent b2160bab04
commit 4365473f0d
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060
5 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"scripts": { "scripts": {
"dev": "snowpack dev", "dev": "SNOWPACK_PUBLIC_API_URL=https://publitebackend.dmitriy.icu snowpack dev",
"build": "snowpack build", "build": "snowpack build",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },

View File

@ -21,5 +21,9 @@ module.exports = {
devOptions: { devOptions: {
open: "none", open: "none",
}, },
alias: { "@assets": "./src/assets" },
exclude: ["**/node_modules/**/*", "**/*.test.*"], exclude: ["**/node_modules/**/*", "**/*.test.*"],
env: {
// API_URL: "https://publitebackend.dmitriy.icu",
},
}; };

View File

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import plusIcon from "./plus.svg"; import plusIcon from "@assets/plus.svg";
import styles from "./AddBook.module.css"; import styles from "./AddBook.module.css";
export const AddBook = () => { export const AddBook = () => {

View File

Before

Width:  |  Height:  |  Size: 884 B

After

Width:  |  Height:  |  Size: 884 B

View File

@ -9,6 +9,7 @@
"lib": ["DOM"], "lib": ["DOM"],
"module": "ES2020", "module": "ES2020",
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true "resolveJsonModule": true,
"paths": { "@assets/*": ["src/assets/*"] }
} }
} }