Skip to content

Commit 3c572f3

Browse files
committed
rename project
1 parent 2ed6b5e commit 3c572f3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vue-file-loader
1+
# vue-asset-loader
22

33
this is a file-loader wrapper for Vue and Webpack, solve the image relative path issues when HTML and CSS are not in the same directory.
44

@@ -28,13 +28,13 @@ then webpack will translate `images/1.png` to `../images/1.png`, this does solve
2828
<img src="image/2.png">
2929
```
3030
webpack will translate `images/2.png` to `../images/2.png`, it leads html load `2.png` failure, so file-loader can't tell the picture from HTML or CSS.
31-
vue-file-loader just solving this issues!
31+
vue-asset-loader just solving this issues!
3232
your webpack config can be like this:
3333

3434
```
3535
{
3636
test: /\.(png|jpe?g|gif|svg)(\?\S*)?$/,
37-
use: [{ loader: 'vue-file-loader', options: { publicPath: '', publicStylePath: '../', name: '/images/[name].[ext]?[hash]' }]
37+
use: [{ loader: 'vue-asset-loader', options: { publicPath: '', publicStylePath: '../', name: '/images/[name].[ext]?[hash]' }]
3838
}
3939
```
4040
or
@@ -47,10 +47,10 @@ or
4747
limit: 2048,
4848
publicPath: '',
4949
publicStylePath: '../',
50-
fallback: 'vue-file-loader',
50+
fallback: 'vue-asset-loader',
5151
name: '/images/[name].[ext]?[hash]'
5252
}
5353
]
5454
}
5555
```
56-
vue-file-loader will choose `publicPath` or `publicStylePath` based on the image from HTML or CSS.
56+
vue-asset-loader will choose `publicPath` or `publicStylePath` based on the image from HTML or CSS.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vue-file-loader",
2+
"name": "vue-asset-loader",
33
"version": "0.1.0",
44
"description": "a file-loader for Vue solve the image relative path issues when HTML and CSS not in the same directory",
55
"main": "index.js",

0 commit comments

Comments
 (0)