Skip to content

Commit a9f2d47

Browse files
author
Doğa Gürdal
committed
feat(snippets/javascript): add file loader import snippet
1 parent 63fc9bb commit a9f2d47

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
{
3737
"language": "twig",
3838
"path": "./snippets/twig.json"
39+
},
40+
{
41+
"language": "javascript",
42+
"path": "./snippets/javascript.json"
3943
}
4044
]
4145
},

snippets/javascript.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"File Loader Import": {
3+
"prefix": "flyntFileLoaderImport",
4+
"body": "import 'file-loader?name=vendor/${1:file.ext}!${2|uglify-loader,csso-loader|}!${3:package-path}'"
5+
}
6+
}

0 commit comments

Comments
 (0)