You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.
I have create a fresh create-react-app, ejected the project and modified my webpack file to include the plugins but i'm seeing the following error when i npm run build "Cannot read property 'tap' of undefined".
I have tried nuking the whole repo, starting fresh and i end up with the same error.
Here's the only part of the webpack file i've changed for reference (apart from importing glob and purgecssplugin at the top).
plugins: [ PnpWebpackPlugin, new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]), new MiniCssExtractPlugin({ filename: "[name].css", }), new PurgecssPlugin({ paths: glob.sync(``${paths.appSrc}/**/*``, { nodir: true }), }), ], },
The backticks in the code above are single, i dont know how to escape them.
Any help is appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
I am trying to follow the following tutorial: https://www.purgecss.com/guides/react with the bootstrap.css file.
I have create a fresh create-react-app, ejected the project and modified my webpack file to include the plugins but i'm seeing the following error when i npm run build "Cannot read property 'tap' of undefined".
I have tried nuking the whole repo, starting fresh and i end up with the same error.
Here's the only part of the webpack file i've changed for reference (apart from importing glob and purgecssplugin at the top).
plugins: [ PnpWebpackPlugin, new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]), new MiniCssExtractPlugin({ filename: "[name].css", }), new PurgecssPlugin({ paths: glob.sync(``${paths.appSrc}/**/*``, { nodir: true }), }), ], },
The backticks in the code above are single, i dont know how to escape them.
Any help is appreciated. Thanks.
The text was updated successfully, but these errors were encountered: