componentjs / spec

Component specs
34 stars 4 forks source link

Components without JS #56

Closed jofan closed 10 years ago

jofan commented 10 years ago

In the Spec is says:

.main

It is recommended that you use "index.js" for the main component file, however if you use another filename, you MUST define a "main" field for that. A component MUST have only one "main" file specified, and it MUST still be listed in the "scripts" array.

What if you have a component without any JavaScript? Do you still need a main file?

jonathanong commented 10 years ago

nope. ALL files listed are included in the build. there are no "optionals". main is only needed for js as a custom "entry point".

jofan commented 10 years ago

Ok, thanks for clarifying.