Skip to content

Commit

Permalink
[#63] feat: add support to fetch remote http file content
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenisx committed Sep 13, 2022
1 parent ab0045a commit 89db75d
Show file tree
Hide file tree
Showing 8 changed files with 378 additions and 40 deletions.
21 changes: 21 additions & 0 deletions examples/css-imports/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@import './local.css';

/* Following is very specific to webpack/react projects */
/* I won't be supporting this in this extension, as a user can import */
/* such css files from extension settings */
/* @import '~open-props/open-props.min.css' */

@import 'node_modules/open-props/open-props.min.css';

/* Following import syntax is supported by vite projects */
/* Again this is very bundler specific and will not be supported */
/* @import 'pollen-css/pollen.css'; */

@import url(https://unpkg.com/[email protected]/pollen.css);

body {
color: var(--red-2);
padding: var(--gap-md);
border-color: var(--color-red);
grid-template-columns: var(--grid-page);
}
7 changes: 7 additions & 0 deletions examples/css-imports/local.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:root {
--gap-sm: 0.25rem;
--gap-md: 0.5rem;
--gap-lg: 1rem;
--gap-xl: 2rem;
--gap-xxl: 4rem;
}
16 changes: 16 additions & 0 deletions examples/css-imports/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "css-imports",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"open-props": "^1.4.14",
"pollen-css": "^4.4.0"
}
}
214 changes: 214 additions & 0 deletions examples/css-imports/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
},
"icon": "img/icon.png",
"engines": {
"vscode": "^1.46.0"
"vscode": "^1.53.0",
"node": "^12.18.3"
},
"categories": [
"Other"
Expand Down Expand Up @@ -336,10 +337,10 @@
"@types/glob": "^7.2.0",
"@types/jest": "^26.0.24",
"@types/lodash": "^4.14.180",
"@types/node": "18",
"@types/node": "12.12.6",
"@types/postcss-less": "^4.0.2",
"@types/postcss-safe-parser": "^5.0.1",
"@types/vscode": "1.46.0",
"@types/vscode": "1.53.0",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"babel-jest": "^26.6.3",
Expand Down
Loading

0 comments on commit 89db75d

Please sign in to comment.