Closed kewah closed 11 years ago
Do you mean config.name
to get the component name? Or were you looking to use it like this?
component: {
app: {
name: 'foo',
scripts: true
}
}
Like this
component: {
app: {
name: 'foo',
scripts: true
}
}
=> build/foo.js
as output file.
Just like -n
flag did with component-build.
I think config.name
should be used to define the name of the stand-alone global var. But i'll do another PR about that ;)
Ah yeah of course. I've just relying on the target name, eg app
, to set the name. I suppose adding it brings it more in line with the actual component build.
The
name
option wasn't used until now :)