Generate completion suitable for ac-html, company-web
Used by ac-html-csswatcher project to provide emacs CSS, LESS class names completion.
Using cpan:
sudo cpan i CSS::Watcher
Using cpanminus from source:
git clone https://github.com/osv/csswatcher.git
cd csswatcher
curl -L https://cpanmin.us | perl - --sudo App::cpanminus
sudo cpanm -v -i .
or:
perl Makefile.PL
make
make test
sudo make install
More info after installation.
man csswatcher
May be used like .projectile or .git for setting project home directory and setup ignored files:
% cat .csswatcher
# ignore minified css files "min.css"
ignore: min\.css$
# ignore bootstrap css files
ignore: bootstrap.*css$
# skip recursive scanning node_modules, it may be slow!
skip: node_modules
Another example:
% cat .csswatcher
# ignore all css except app.css
ignore: \.css$
use: app\.css
# and skip recursive scanning node_modules, it may be slow!
skip: node_modules