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
388388
389389``` javascript
390390const miniCssExtractPlugin = new MiniCssExtractPlugin ({
391- moduleFilename : ({ name }) => ` ${ name .replace (' /js/' , ' /css/' )} .css`
392- })
391+ moduleFilename : ({ name }) => ` ${ name .replace (' /js/' , ' /css/' )} .css` ,
392+ });
393393```
394394
395395#### Long Term Caching
Original file line number Diff line number Diff line change @@ -181,10 +181,15 @@ export function pitch(request) {
181181 return callback ( e ) ;
182182 }
183183
184- const esModules = typeof options . esModules === 'boolean' && options . esModules === true ;
184+ const esModules =
185+ typeof options . esModules === 'boolean' && options . esModules === true ;
185186
186187 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+ : '' ;
188193
189194 resultSource += options . hmr
190195 ? hotLoader ( result , { context : this . context , options, locals } )
You can’t perform that action at this time.
0 commit comments