This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, Has anyone gotten Mindscape Workbench's coffee script to work with Knapsack? Knapsack seems to include every file in the directory from any dependent module. Thus, it is including both the coffee script file and the JS file. What I would like is either: 1. A way for workbench to generate the JS file to a different directory than the coffee script file or 2. A way to exclude files from being included in modules in knapsack Thanks, Jason |
|
|
I was facing the same issue and there are 2 approaches: 1. Since Cassette (formerly know as Knapsack) can compile .coffee files as well, a good solution is to configure it such that it only includes .coffee files. A configuration would look something like this:
public class CassetteConfiguration : ICassetteConfiguration { public void Configure(ModuleConfiguration moduleConfiguration, ICassetteApplication application) { moduleConfiguration.Add( new DirectorySource<ScriptModule>("/scripts" ) { FilePattern = "*.coffee" } ); } } Or, you can simply tell Cassette that it should only .js files: public class CassetteConfiguration : ICassetteConfiguration { public void Configure(ModuleConfiguration moduleConfiguration, ICassetteApplication application) { moduleConfiguration.Add( new DirectorySource<ScriptModule>("/scripts" ) { FilePattern = "*.js" } ); } } |
|
|
Another I am facing myself, however, is that Web Workbench now generates 2 .css files for .scss files. Does anyone know if it is possible to tell Workbench to only generate a single .css file?
|
|
|
Please ignore my statement that Cassette includes .css files even though you configure it to only include .min.css files. It actually does work, I forgot to compile the project. Duh :) So that means everything works out just fine for me. |
|
|
This is the method signature when I install the package via Nuget How to Ignore JS in http://getcassette.net? |
|