mirror of
https://github.com/workhardbekind/workout-challenge.git
synced 2026-07-04 09:23:32 -04:00
21 lines
No EOL
578 B
JavaScript
21 lines
No EOL
578 B
JavaScript
const Critters = require('critters-webpack-plugin');
|
|
|
|
module.exports = {
|
|
webpack: {
|
|
configure: (webpackConfig) => {
|
|
webpackConfig.devtool = 'source-map'; // always enable source maps
|
|
return webpackConfig;
|
|
},
|
|
plugins: {
|
|
add: [
|
|
new Critters({
|
|
// Critters options
|
|
preload: 'swap', // or 'body'
|
|
preloadFonts: true,
|
|
fonts: true,
|
|
noscriptFallback: true
|
|
})
|
|
]
|
|
}
|
|
}
|
|
}; |