Skip to content

Commit

Permalink
docs(readme): add styling
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Aug 28, 2014
1 parent 89813b3 commit 0930367
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions readme.md
Expand Up @@ -41,9 +41,11 @@ module.exports = 'base';
module.exports = require('./base.js') + ' extended!';
```

As you can see, snippet above will not work properly, because you should fix the path of the require call. Ofter there is no way to do this, because order of layers can change eventually. So we come up with this idea.
As you can see, snippet above will not work properly, because you should fix the path of the require call. Ofter there is no way to do this, because order of layers can change eventually. So we come up with this idea:

Every bundled file will "export" module with it BEM identifier. For example `base__elem.js` will export `base__elem` module, that can be required in next bundled javascript file:
> Every bundled file will "export" module with it BEM identifier.
For example `base__elem.js` will export `base__elem` module, that can be required in next bundled javascript file:

```js
// base/base.js
Expand Down

0 comments on commit 0930367

Please sign in to comment.