This repository has been archived by the owner on Feb 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Support short-naming #81
Comments
I think we can add |
This looks strange.
If How it should works? |
@zxqfox name is folder name |
A block is a set of techs and resources.
|
Nope, it can't be by default. Check it: const path = require('path');
[
path.parse('blockname/bemhtml.js'),
path.parse('blockname/style.css'),
path.parse('blockname/deps.js')
];
// →
[ { root: '', dir: 'blockname', base: 'bemhtml.js', ext: '.js', name: 'bemhtml' },
{ root: '', dir: 'blockname', base: 'style.css', ext: '.css', name: 'style' },
{ root: '', dir: 'blockname', base: 'deps.js', ext: '.js', name: 'deps' } ] P.s. Of course we can always pass a couple of params to customize this logic inside scheme. But is the game worth the candle? |
@zxqfox yes. BEM already very long in HTML.. But for HTML created XJST. |
This was referenced Jan 24, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Now:
Short:
The text was updated successfully, but these errors were encountered: