Use for assets
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, webpack
- Domain
- build-system
Research direction
No source file or test is named. Start by reproducing the shown URL import in the Webpack/Vue example and read how the plugin currently handles remote modules. Done should mean the requested asset import is either supported and included in the deployed build, or its unsupported usage is clearly documented.
Written by the indexing model from the issue text.
Description
I expected I can use this plugin for including assets in Webpack build:
import html from 'https://example.com/'
export default {
data () {
return {
html
}
}
}
But it fails:
Downloading https://example.com... (repeated 2 times) 23:26:48
ERROR Failed to compile with 1 errors friendly-errors 23:26:52
This dependency was not found: friendly-errors 23:26:52
friendly-errors 23:26:52
* https://example.com/ in ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/pro-pruvodce.vue?vue&type=script&lang=js&
friendly-errors 23:26:52
To install it, you can run: npm install --save https://example.com/
Do I use it incorrectly? How to do it correctly?
My motivation for using import for this (and not load it in the app) is to include it in app's build sources what will be deployed to a hosting together.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from egoist/import-http
-
Difficulty 3/5 1-2 days Newbie friendliness 28/100
egoist/import-http#40 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
egoist/import-http#33 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
egoist/import-http#29 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
egoist/import-http#25 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
egoist/import-http#16 · 11 comments · 1 reaction ·
All issues in egoist/import-http
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: tests help wanted size/s
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
DahanItamar/DockNest#368 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100