egoist / egoist/import-http

Use for assets

Open
#19 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
30
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.