Comments (1)
Hey @chrisyue!
This is a good idea. Some pointers to help you for now:
- Run
./node_modules/.bin/encore production
before / during deploying to create your final .js and .css files - You don't need to deploy the
node_modules
directory at all. So if you run encore before deploying, you can just deploy the finalweb/build
directory and not deploy thenode_modules
directory. That's why you don't need to worry about running anything likeyarn install --production
: all of the npm packages and Encore stuff is not needed on production at all (only the finished files in the build directory are needed). - When you run
./node_modules/.bin/encore production
, all of your .js and .css files should be compressed automatically :).
I've just created a docs issue: symfony/symfony-docs#8094. If you have any other questions, can you ask on there? I'm sure other people will have the same questions, so it'll help us answer all of them.
Cheers!
from webpack-encore.
Related Issues (20)
- imports are ignored HOT 9
- unplugin-vue-i18n destroy all my images and fonts
- asset/inline Asset Module complains about generator property which isn't there
- webpack-encore not working correctly in a live server
- how to add plugins HOT 1
- HMR not working with custom domain HOT 1
- How can I transpileDependencies when using webpack encore
- Debugging hanging CSSMinimizerPlugin
- Module build failed: Module not found: "@symfony/stimulus-bundle" HOT 2
- Allow to pass options to babel react preset
- Twig file changes are not working with "watch" or "dev-server" HOT 1
- Getting an error for assets compilation with webpack-encore.
- ReferenceError: __VUE_PROD_DEVTOOLS__ is not defined HOT 2
- Disabling notifications on windows breaks --watch flag HOT 1
- Warning on sass-loader 14 HOT 1
- Svelte loader Module not found
- Two different builds for two versions of Vue.js app HOT 3
- Warning for postcss-loader v8.1.0 to be too new HOT 3
- PrettyError not supported anymore results in an error HOT 3
- Fully support less-loader ^12 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 webpack-encore.