This repository was archived by the owner on Mar 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ You can configure a custom filename template for your file using the query param
7171** webpack.config.js**
7272``` js
7373{
74- loader: ' file-loader'
74+ loader: ' file-loader' ,
7575 options: {
7676 name: ' [path][name].[ext]'
7777 }
@@ -105,7 +105,7 @@ By default, the path and name you specify will output the file in that same dire
105105** webpack.config.js**
106106``` js
107107{
108- loader: ' file-loader'
108+ loader: ' file-loader' ,
109109 options: {
110110 name: ' [path][name].[ext]' ,
111111 context: ' '
@@ -120,7 +120,7 @@ You can specify custom `output` and `public` paths by using `outputPath`, `publi
120120** webpack.config.js**
121121``` js
122122{
123- loader: ' file-loader'
123+ loader: ' file-loader' ,
124124 options: {
125125 name: ' [path][name].[ext]' ,
126126 publicPath: ' assets'
@@ -133,7 +133,7 @@ You can specify custom `output` and `public` paths by using `outputPath`, `publi
133133** webpack.config.js**
134134``` js
135135{
136- loader: ' file-loader'
136+ loader: ' file-loader' ,
137137 options: {
138138 name: ' [path][name].[ext]' ,
139139 outputPath: ' images'
@@ -164,7 +164,7 @@ import img from './file.png'
164164
165165``` js
166166{
167- loader: ' file-loader'
167+ loader: ' file-loader' ,
168168 options: {
169169 emitFile: false
170170 }
@@ -187,7 +187,7 @@ import png from 'image.png'
187187** webpack.config.js**
188188``` js
189189{
190- loader: ' file-loader'
190+ loader: ' file-loader' ,
191191 options: {
192192 name: ' dirname/[hash].[ext]'
193193 }
@@ -201,7 +201,7 @@ dirname/0dcbbaa701328ae351f.png
201201** webpack.config.js**
202202``` js
203203{
204- loader: ' file-loader'
204+ loader: ' file-loader' ,
205205 options: {
206206 name: ' [sha512:hash:base64:7].[ext]'
207207 }
@@ -219,7 +219,7 @@ import png from 'path/to/file.png'
219219** webpack.config.js**
220220``` js
221221{
222- loader: ' file-loader'
222+ loader: ' file-loader' ,
223223 options: {
224224 name: ' [path][name].[ext]?[hash]'
225225 }
You can’t perform that action at this time.
0 commit comments