Git Product home page Git Product logo

mercenary's People

Contributors

justinsisley avatar manmademammal avatar mortonfox avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ccarrylab

mercenary's Issues

npm run prod is failing

`child_process.js:532
throw err;
^

Error: Command failed:
rm -rf /Users/manmademammal/projects/playground/test-app/static &&
NODE_ENV=production "/Users/manmademammal/projects/playground/test-app/node_modules/.bin/webpack" --display-error-details --config "/Users/manmademammal/projects/playground/test-app/node_modules/mercenary-core/config/webpack/production.js"

at checkExecSyncError (child_process.js:489:13)
at Object.execSync (child_process.js:529:13)
at build (/Users/manmademammal/projects/playground/test-app/node_modules/mercenary-core/tasks/build.js:10:6)
at Object.<anonymous> (/Users/manmademammal/projects/playground/test-app/node_modules/mercenary-core/index.js:49:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)`

Production build is taking a long time

Processing css/0b6a9f00bf8d512d2a1627978d5eb1da.css...
Processed css/0b6a9f00bf8d512d2a1627978d5eb1da.css, before: 385550, after: 285203, ratio: 73.97%
Hash: 60adaac4fcb14a919de9
Version: webpack 2.5.1
Time: 356270ms
Asset Size Chunks Chunk Names
js/bc7322da46add23b4fd8.js 44.8 kB 2 [emitted]
fonts/674f50d287a8c48dc19ba404d20fe713.eot 166 kB [emitted]
images/2bb208aac276d6b06ba61dfac2c1279a.svg 88 bytes [emitted]
fonts/b06871f281fee6b241d60582ae9369b9.ttf 166 kB [emitted]
fonts/fee66e712a8a08eef5805a46892932ad.woff 98 kB [emitted]
fonts/af7ae505a9eed503f8b8e6982036873e.woff2 77.2 kB [emitted]
js/b9fbad611be85d191c23.js 1.1 MB 0 [emitted] [big]
js/7f888211a91bc1f6f344.js 1.1 MB 1 [emitted] [big]
fonts/912ec66d7572ff821749319396470bde.svg 444 kB [emitted] [big]
js/f16f77f0ea14233046d3.js 44.1 kB 3 [emitted]
js/eac4ce98bb78d6a17b93.js 80 kB 4 [emitted]
js/1d6eaee745784d479a4f.js 11.7 kB 5 [emitted]
js/8d921cc5d4cdbe3f3a84.js 8.53 kB 6 [emitted]
js/60adaac4fcb14a919de9.js 608 kB 7 [emitted] [big] main
css/0b6a9f00bf8d512d2a1627978d5eb1da.css 285 kB 7 [emitted] [big] main
index.html 286 kB [emitted] [big]

Remove react-async-component?

From: https://facebook.github.io/react/blog/2017/05/18/whats-new-in-create-react-app.html

It is important to keep the initial JavaScript payload of web apps down to the minimum, and load the rest of the code on demand. Although Create React App supported code splitting using require.ensure() since the first release, it used a webpack-specific syntax that did not work in Jest or other environments.

In this release, we are adding support for the dynamic import() proposal which aligns with the future web standards. Unlike require.ensure(), it doesn't break Jest tests, and should eventually become a part of JavaScript. We encourage you to use import() to delay loading the code for non-critical component subtrees until you need to render them.

cra-dynamic-import

Pre-compile email templates when running in production

Don't make Node compile the email templates on every sendmail. Compile them to disk when the prod task is run, then read it from disk when needed.

Depending on the number and size of all of the email templates combined, you could keep them in memory, but it won't scale indefinitely.

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.