File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -388,8 +388,8 @@ With the `moduleFilename` option you can use chunk data to customize the filenam
388
388
389
389
``` javascript
390
390
const miniCssExtractPlugin = new MiniCssExtractPlugin ({
391
- moduleFilename : ({ name }) => ` ${ name .replace (' /js/' , ' /css/' )} .css`
392
- })
391
+ moduleFilename : ({ name }) => ` ${ name .replace (' /js/' , ' /css/' )} .css` ,
392
+ });
393
393
```
394
394
395
395
#### Long Term Caching
Original file line number Diff line number Diff line change @@ -181,10 +181,15 @@ export function pitch(request) {
181
181
return callback ( e ) ;
182
182
}
183
183
184
- const esModules = typeof options . esModules === 'boolean' && options . esModules === true ;
184
+ const esModules =
185
+ typeof options . esModules === 'boolean' && options . esModules === true ;
185
186
186
187
let resultSource = `// extracted by ${ pluginName } ` ;
187
- const result = locals ? `\n${ esModules ? 'export default ' : 'module.exports = ' } ${ JSON . stringify ( locals ) } ;` : '' ;
188
+ const result = locals
189
+ ? `\n${
190
+ esModules ? 'export default ' : 'module.exports = '
191
+ } ${ JSON . stringify ( locals ) } ;`
192
+ : '' ;
188
193
189
194
resultSource += options . hmr
190
195
? hotLoader ( result , { context : this . context , options, locals } )
You can’t perform that action at this time.
0 commit comments