Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65445f8 commit dff9d28Copy full SHA for dff9d28
next.config.js
@@ -4,12 +4,12 @@ module.exports = {
4
webpack: (config, { dev }) => {
5
/* Enable only in Production */
6
if (!dev) {
7
- // // Preact
8
- // console.log('> Using Preact instead of React');
9
- // config.resolve.alias = {
10
- // react: 'preact-compat/dist/preact-compat',
11
- // 'react-dom': 'preact-compat/dist/preact-compat',
12
- // };
+ // Preact
+ console.log('> Using Preact instead of React');
+ config.resolve.alias = {
+ react: 'preact-compat/dist/preact-compat',
+ 'react-dom': 'preact-compat/dist/preact-compat',
+ };
13
if (ANALYZE) {
14
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
15
config.plugins.push(
0 commit comments