Code Monkey home page Code Monkey logo

Comments (1)

weaverryan avatar weaverryan commented on May 22, 2024 3

Hey @chrisyue!

This is a good idea. Some pointers to help you for now:

  1. Run ./node_modules/.bin/encore production before / during deploying to create your final .js and .css files
  2. You don't need to deploy the node_modules directory at all. So if you run encore before deploying, you can just deploy the final web/build directory and not deploy the node_modules directory. That's why you don't need to worry about running anything like yarn 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).
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.