Co-authored-by: Alexis Campailla <alexis@janeasystems.com> Co-authored-by: Bret Anderson <bretan@microsoft.com> Co-authored-by: Enrico Giordani <enrico.giordani@gmail.com> Co-authored-by: Jaime Bernardo <jaime@janeasystems.com> Co-authored-by: Jeff Bogdan <jeffbog@microsoft.com> Co-authored-by: March Rogers <marchr@microsoft.com> Co-authored-by: Mike Harsh <mharsh@microsoft.com> Co-authored-by: Nachum Bundak <Nachum.Bundak@microsoft.com> Co-authored-by: Oliver Jones <ojones@microsoft.com> Co-authored-by: Patrick Little <plittle@microsoft.com>
20 lines
531 B
JavaScript
20 lines
531 B
JavaScript
const { webpackMerge, htmlOverlay, basicWebpackServeConfig, stylesOverlay, tsOverlay } = require('just-scripts');
|
|
|
|
// Overrides the Just file overlay so that SVGs can be used as a React Component.
|
|
powertoys_fileOverlay = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(png|jpg|gif)$/,
|
|
use: ['file-loader']
|
|
},
|
|
{
|
|
test: /\.svg$/,
|
|
use: ['@svgr/webpack']
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
module.exports = webpackMerge(basicWebpackServeConfig, htmlOverlay, stylesOverlay, tsOverlay, powertoys_fileOverlay);
|