mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #173 from thisandagain/feature/minify
Use Minified react & react-dom in production
This commit is contained in:
commit
a20fc32a42
2 changed files with 6 additions and 5 deletions
|
@ -13,5 +13,8 @@ module.exports = {
|
|||
og_image_height: 860,
|
||||
|
||||
// Analytics & Monitoring
|
||||
ga_tracker: process.env.GA_TRACKER || ''
|
||||
ga_tracker: process.env.GA_TRACKER || '',
|
||||
|
||||
// Use minified JS libraries
|
||||
min: (process.env.NODE_ENV === 'production') ? '.min' : ''
|
||||
};
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
<div id="footer"></div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="/js/lib/react.js"></script>
|
||||
<script src="/js/lib/react-dom.js"></script>
|
||||
<script src="/js/lib/react{{min}}.js"></script>
|
||||
<script src="/js/lib/react-dom{{min}}.js"></script>
|
||||
|
||||
<script src="/js/main.bundle.js"></script>
|
||||
<script src="/js/{{view}}.bundle.js"></script>
|
||||
|
@ -59,7 +59,5 @@
|
|||
});
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<!-- @todo New Relic -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue