Skip to content

Commit 6fb468c

Browse files
committed
release 0.12.0
1 parent 99ccb16 commit 6fb468c

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## [0.12.0] - 2017-08-23
4+
- feature: support import plain file like .less .css .jpg
5+
36
## [0.11.4] - 2017-08-04
47
- fix bug: TypeError in getIdentifierLoc #2
58

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Build Status](https://img.shields.io/travis/wangtao0101/vscode-js-import.svg?style=flat)](https://travis-ci.org/wangtao0101/vscode-js-import)
55
[![Marketplace Version](http://vsmarketplacebadge.apphb.com/trending-monthly/wangtao0101.vscode-js-import.svg)](https://marketplace.visualstudio.com/items?itemName=wangtao0101.vscode-js-import)
66

7-
Intelligent and fast import extension for js in vscode, support both TypeScript and JavaScript !!!
7+
Intelligent and fast import extension for js in vscode, support import position option and adding import to existing import statement. !!!
88

99
# Introduce
1010
![GitHub Logo](https://github.com/wangtao0101/vscode-js-import/blob/master/img/newimport.gif?raw=true)
@@ -59,6 +59,9 @@ Also, we can skip @flow or copyright comment.
5959
## Support auto code completion
6060
![GitHub Logo](https://github.com/wangtao0101/vscode-js-import/blob/master/img/codecomplete.gif?raw=true)
6161

62+
## Support import scss, css, less, json, bmp, gif, jpe, jpeg, png ... file, support css-modules
63+
see config js-import.plainFileSuffix and js-import.plainFileSuffixWithDefaultMember
64+
6265
## Support multi-packages like [lerna](https://github.com/lerna/lerna) style
6366
If you have a file system that looks like this:
6467
```
@@ -112,6 +115,16 @@ We will watch the change of package.json, and auto add and remove module.
112115
//Glob for files to watch and scan, e.g ./src/** ./src/app/**/*.js. Defaults to **/*.{jsx,js,ts,tsx}
113116
"js-import.filesToScan": "**/*.{jsx,js,tsx,ts}"
114117
118+
//suffix of plainFiles. Defaults to css,less,sass
119+
//When import file with these suffixes, the import statement only has 'import' and 'model-name' like 'import 'xxx.less'.
120+
//if you use css modules, you can remove css,less,sass in here, see config js-import.plainFileSuffixWithDefaultMember
121+
"js-import.plainFileSuffix": "css,less,sass"
122+
123+
//suffix of plainFiles which should be imported with default member. Defaults to json,bmp,gif,jpe,jpeg,png
124+
//When import file with these suffixes, the import statement has default import like 'import json form 'xxx.json'
125+
//if you use css modules, you can add css,less,sass in here
126+
"js-import.plainFileSuffixWithDefaultMember": "json,bmp,gif,jpe,jpeg,png"
127+
115128
//the insert position of new import statement, first means first of all imports, last means last of all imports, soon we will suport sort
116129
"js-import.insertPosition": "last"
117130

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-js-import",
33
"displayName": "vscode-js-import",
44
"description": "Intelligent and fast import extension for js in vscode, support import position option and adding import to existing import statement.",
5-
"version": "0.11.4",
5+
"version": "0.12.0",
66
"publisher": "wangtao0101",
77
"repository": {
88
"type": "git",
Binary file not shown.

0 commit comments

Comments
 (0)