Comments (2)
Hey @nasirDoe
Each optimisation can be disabled conditionally. It may be worth going through the features and seeing which one is breaking the site. Seems like it could be the postcss one
export default {
webpackOptimisations: {
features: {
// this could fix it
postcssNoPolyfills: false,
// change true to false for each one until things start working
esbuildLoader: true,
esbuildMinifier: true,
imageFileLoader: true,
webpackOptimisations: true,
cacheLoader: true,
hardSourcePlugin: false,
parallelPlugin: false,
}
}
}
Otherwise to have optimisations only work in dev you can see the example in the read me.
webpackOptimisations: {
// hard source is the riskiest, if you have issues don't enable it
hardSourcePlugin: process.env.NODE_ENV === 'development',
parallelPlugin: process.env.NODE_ENV === 'development',
}
from nuxt-webpack-optimisations.
thanks @harlan-zw for your answer. it's helps
from nuxt-webpack-optimisations.
Related Issues (20)
- Avoid overriding users default nuxt configurations HOT 1
- Profile: 'false' is still applying optimizations HOT 2
- Vite vue-cli HOT 1
- Fails with vue-property-decorator and vue-class-component HOT 2
- can't find This dependency `.nuxt/client.js ` HOT 2
- can't use measure option HOT 1
- Risky profile doesnt seems to work HOT 3
- esbuild-loader error HOT 6
- Client fails to compile HOT 1
- Dev start error "Invalid host defined options" HOT 5
- ESBuildMinifierPlugin failed to import HOT 4
- Missing CSS after second npm run dev HOT 3
- nuxtCtx.set is not a function HOT 1
- Documentation is ambiguous / unclear on certain aspects HOT 1
- Error on startup: SyntaxError: Invalid or unexpected token HOT 3
- Incompatible with nuxt 2.16.0 due to nuxt upgrading to postcss8 and nuxt3 style postcss8 options HOT 8
- [email protected] - Server compiled with some errors
- ERROR: The JSX syntax extension is not currently enabled HOT 1
- Minification is not applied by default HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-webpack-optimisations.