You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Broccoli walkthrough puts assets in app/, but broccoli-asset-rev assumes that many things will be in assets/, as well as having defaults (for manifest/assetMap files) there. The following seem to be affected:
filter controlling which files in the asset map are written to the Rails/Sprockets-compatible manifest
location of existing Rails manifest
The second I'm (a) not hugely fussed about, and (b) don't know how to trigger given Broccoli doesn't want to overwrite build trees. But the first means that something like the following (which may not be the "right" way of doing things, but doesn't give errors) misses app.css and app.js from the Rails manifest:
/* Brocfile.js */// Import some Broccoli pluginsvarcompileSass=require('broccoli-sass');varfilterCoffeeScript=require('broccoli-coffee');varmergeTrees=require('broccoli-merge-trees');varrev=require('broccoli-asset-rev');// Specify the Sass and Coffeescript directoriesvarsassDir='app/scss';varcoffeeDir='app/coffeescript';// Tell Broccoli how we want the assets to be compiledvarstyles=compileSass([sassDir],'app.scss','app.css');varscripts=filterCoffeeScript(coffeeDir);// Merge the compiled styles and scripts into one output directory.vartree=mergeTrees([styles,scripts]);varhashed=newrev(tree,{generateAssetMap: true,generateRailsManifest: true,railsManifestPath: 'manifest.json',});module.exports=hashed;
The text was updated successfully, but these errors were encountered:
The Broccoli walkthrough puts assets in
app/
, butbroccoli-asset-rev
assumes that many things will be inassets/
, as well as having defaults (for manifest/assetMap files) there. The following seem to be affected:The second I'm (a) not hugely fussed about, and (b) don't know how to trigger given Broccoli doesn't want to overwrite build trees. But the first means that something like the following (which may not be the "right" way of doing things, but doesn't give errors) misses
app.css
andapp.js
from the Rails manifest:The text was updated successfully, but these errors were encountered: