Moved icon to assets, added alias to this folder
This commit is contained in:
parent
b2160bab04
commit
4365473f0d
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
@ -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 = () => {
|
||||||
|
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 884 B |
@ -9,6 +9,7 @@
|
|||||||
"lib": ["DOM"],
|
"lib": ["DOM"],
|
||||||
"module": "ES2020",
|
"module": "ES2020",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"resolveJsonModule": true
|
"resolveJsonModule": true,
|
||||||
|
"paths": { "@assets/*": ["src/assets/*"] }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user