search

Home  >  Q&A  >  body text

babel6 - Redux babel webpack node.js整体优化问题

PHPzPHPz2873 days ago552

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-17 15:37:03

    There is nothing wrong with the reduce operation, I did it too. . . Fall


    Webpack’s compilation and optimization must be compiled globally when the build is online. However, public modules, such as referenced libraries and frameworks such as react.js, can be extracted and packaged separately.
    You can write two configs.
    Give you some information.
    My previous blog:
    Practice DllPlugin to optimize webpack packaging speed

    Example:
    https://github.com/anchengjia...


    Deploy this on the server side
    Webpack dev-server is used for development and debugging, and is definitely not used to start the http service for deployment!
    Usually it is developed locally. After the development is completed, it is specially built for the server. There are too many choices at this time. If it is a purely static page, nginx, apache, nodejs, etc. can start a service. If recommended, of course nginx, then nodejs.
    You can also use a big trick to deploy directly to CDN.

    reply
    0
  • Cancelreply