Closed tuannguyenminh2086 closed 7 years ago
So you have lodash available in development, but not in production, or not at all? Maybe all you need to do is override your bower.json
to include that file. Something like:
{
"dependencies": {
"lodash": "~4.17.4"
},
"overrides": {
"lodash": {
"main": "dist/lodash.min.js"
}
}
}
I have lodash available in developement. but not in production. when I run in production mode by the command: gulp serve:dist . The browser will say : _ is not defined
Thanks for your quick help. I will do like you show and come back later. Many thanks
Thanks, It works.
Hello,
I installed the Lodash lib by: bower install lodash --save. After I run : gulp build. the lodash look like not include in plugins.js
here is how I add lodash in app folder.
Hope to see your feedback