Exclude from brunch build devDependencies node_modules -
i'm using both bower , npm external libraries in app.
- bower.json contains application dependencies (backbone, lodash, etc...)
- package.json contains dev environment deps (babel, brunch, brunch plugins, etc...)
here's part of brunch-config.coffee file:
module.exports = config: files: javascripts: exclude: '/**/*.min.js' jointo: 'js/app.js': /^app/ 'js/vendor.js': /^(bower_components|vendor)/
and the, brunch build not embed node_modules (which dev dependencies only).
i remove bower , make happen npm. there way in brunch exclude brunch build node_modules mentioned in 'devdependencies' section of package.json?
thanks lot,
pierre (frontend beginner)
brunch automatically detects packages using in application. no action required you. if there 10 brunch plugins , 2 babel addons, brunch won't use them unless write require('babel')
in frontend code.
Comments
Post a Comment