Exclude Files From Broccoli Ember 2.0
Solution 1:
Since you are using Ember (and Ember-CLI), just make sure to scroll down far enough in the broccoli-asset-rev documentation that you linked and you will reach the part most relevant to your circumstance. In particular, the provided 'Ember CLI addon usage' example should already be a close match for your case.
Adapting that to your stated problem and provided code, you would perhaps get something along the lines of
varapp=newEmberApp({fingerprint: {
exclude: ['img/']
},modals: {
layout:true,
style:true,
animation:'scale'
}
});
The relevant Ember-CLI documentation section also explains fingerprinting in slightly more detail.
Other than using the exclude
option, you could
- set
enabled: false
if you don't actually need fingerprinting - not include image extensions in general via something like
extensions: ['js', 'css', 'map']
Solution 2:
This answer applies for Ember 2.x through at least 3.x.
Another approach is to use an addon that helps you easily exclude files. Installing ember-cli-funnel and then specifying the file accomplishes this pretty nicely:
// ember-cli-build.jslet app = newEmberApp(defaults, {
funnel: {
exclude: [
`${defaults.project.pkg.name}/routes/style-guide/**/*`,
'addon-tree-output/some-addon/styles/**/*.scss'
]
}
});
Post a Comment for "Exclude Files From Broccoli Ember 2.0"