Closed mediafreakch closed 9 years ago
Hello,
The docs state that using cartero API you can specify the keys in package.json that enumerate assets.
assetTypes (default: [ 'style', 'image' ]) -The keys in package.json files that enumerate assets that should be copied to the cartero output directory
assetTypes
To verify that it should work, I modified Example 3 of the tests contained in the cartero repo to this:
Example 3
// cartero/test/example3/views/package.json { "name" : "common-js", "main" : "common.js", "style" : "*.css", "random" : ["*.png"] }
// cartero/test/test.js - line 119 var c = cartero( viewDirPath, outputDirPath, { assetTypes: ["random", "style"]} );
The test does not pass: not ok 12 robot.png in common package
not ok 12 robot.png in common package
Is there a limited set of supported keys or is it a bug?
Hi again @mediafreakch. Yes, this was in fact a bug. Fixed in v4.0.3, just published. Thanks!
Hello,
The docs state that using cartero API you can specify the keys in package.json that enumerate assets.
To verify that it should work, I modified
Example 3
of the tests contained in the cartero repo to this:The test does not pass:
not ok 12 robot.png in common package
Is there a limited set of supported keys or is it a bug?