[ci] yarn format

This commit is contained in:
FredKSchott 2021-08-06 20:47:15 +00:00 committed by GitHub Actions
parent 2da7078eff
commit dfafbe54d7

View file

@ -26,7 +26,6 @@ export default {
plugins: ['@snowpack/plugin-dotenv'],
workspaceRoot: '../',
};
```
To **add your own** alias just define it on a new line, like so:
@ -38,24 +37,22 @@ export default {
alias: {
components: './src/components',
'~': './src',
'@public': './public' // This can be virtually anything
'@public': './public', // This can be virtually anything
},
plugins: ['@snowpack/plugin-dotenv'],
workspaceRoot: '../',
};
```
| Key | Value |
| ----- | ----- |
| --------------------------- | ---------------------------------- |
| The keyword you'll be using | The path it will get replaced with |
## Usage
Now just use the **defined** aliases in a file of your choice:
```js
import '@public/assets/logo.svg';
import MyComponent from 'components/MyComponent/MyComponent.tsx'
import MyComponent from 'components/MyComponent/MyComponent.tsx';
```