Roots Discourse

Main.js not created in gulp --production


#1

I am running Sage 8.5.1. Gulp watch works fine but when I gulp --production the main.js file does not get created. This is my manifest file:
{ "dependencies": { "main.js": { "vendor": [ "assets/scripts/custom/utilities.js", "assets/scripts/custom/templates.js", "assets/scripts/custom/map-tools.js", "assets/scripts/custom/js.cookie.js" ], "files": [ "scripts/main.js" ], "main": true }, "main.css": { "files": [ "styles/main.scss" ], "main": true }, "admin.css": { "files": [ "styles/admin.scss" ], "main": true }, "customizer.js": { "files": [ "scripts/customizer.js" ] }, "jquery.js": { "bower": ["jquery"] } }, "config": { "devUrl": "http://abc.dev", "devSsl": { "key": "../ssl/localhost.key", "crt": "../ssl/localhost.crt" } } }
I have also have this as a assets.json in my dist folder:
{ "admin.css": "admin-d0c1704bb8.css", "customizer.js": "customizer-5800bbe065.js", "jquery.js": "jquery-113701f71a.js", "main.css": "main-f53119b278.css" }
I have also added babel to my gulp file so I could write better js with things like set. https://babeljs.io/

Any idea how I can get the main.js production file back?