mirror of
https://github.com/workhardbekind/workout-challenge.git
synced 2026-07-04 09:23:32 -04:00
first commit
This commit is contained in:
commit
e7f627801f
152 changed files with 35352 additions and 0 deletions
21
src-frontend/craco.config.js
Normal file
21
src-frontend/craco.config.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue