mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
[PR #303] [CLOSED] Webpack Alias: Added Lib alias #718
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#718
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/303
Author: @shmolf
Created: 1/18/2020
Status: ❌ Closed
Base:
master← Head:lib-alias📝 Commits (1)
b3f92b9Webpack Alias: AddedLibalias📊 Changes
110 files changed (+272 additions, -262 deletions)
View changed files
📝
src/components/App.tsx(+14 -14)📝
src/components/AttachmentsPage/AttachmentList.tsx(+6 -6)📝
src/components/AttachmentsPage/AttachmentsPage.tsx(+5 -5)📝
src/components/CodeMirrorStyle.tsx(+1 -1)📝
src/components/ContextMenu/ContextMenu.tsx(+1 -1)📝
src/components/ContextMenu/styled.ts(+3 -3)📝
src/components/Dialog/Dialog.tsx(+2 -2)📝
src/components/Dialog/DialogIcon.tsx(+1 -1)📝
src/components/Dialog/MessageBoxDialogBody.tsx(+1 -1)📝
src/components/Dialog/PromptDialogBody.tsx(+1 -1)📝
src/components/Dialog/styled.ts(+2 -2)📝
src/components/GlobalStyle.tsx(+3 -3)📝
src/components/Modal/contents/styled.ts(+2 -2)📝
src/components/Modal/index.tsx(+3 -3)📝
src/components/Modal/styled.ts(+2 -2)📝
src/components/NotePage/NoteDetail/NoteDetail.tsx(+7 -7)📝
src/components/NotePage/NoteDetail/TagList.tsx(+2 -2)📝
src/components/NotePage/NoteList/NoteItem.tsx(+9 -9)📝
src/components/NotePage/NoteList/NoteList.tsx(+5 -5)📝
src/components/NotePage/NotePage.tsx(+9 -9)...and 80 more files
📄 Description
I've used webpack alias before, and it helps to make importing cleaner, and more direct.
Here's the reference I've used before.
I've loaded the application and created a new folder, and a couple of notes. They store and are retrieved as expected.
There were no errors generated, apart from the missing-environment-variable warnings.
The benefit is, instead of referencing
../../lib/or../../../../../lib/, developers can simply referenceLib/.The significant changes are in
tsconfig.jsonwebpack.config.ts🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.