What tools are used to write a CSS file in bootstrap by writing less files?

Source: Internet
Author: User
Tags install node

What tools are used to write a CSS file in bootstrap by writing less files?

How do I save the browser to the latest code style after saving the code with sublime?

Or what other useful tools are there?

From the Internet to find a lot of ways can not be achieved, online waiting for your reply.

Installing Grunt

Before installing Grunt, you need to first download and install node. JS (NPM is included). NPM is the abbreviation for node packaged modules, and its role is to manage the dependencies between the expansion packages based on node. js.

Then enter the following command on the command line:

    1. Install GRUNT-CLI:NPM install-g GRUNT-CLI in the global environment.
    2. Go to the/bootstrap/root directory and execute the NPM install command. NPM will read the Package.json file and automatically install all dependent expansion packs listed in this file.

Once the above steps are complete, you can run the various Grunt commands provided by Bootstrap.

Available Grunt Commands Grunt Dist (only CSS and JavaScript files are compiled)

Regenerate the/dist/directory and place the compiled compressed CSS and JavaScript files into this directory. As a Bootstrap user, you only need to execute this command in most cases.

Grunt Watch (monitor file changes and run the specified grunt task)

Monitor the change of less source file and automatically recompile it to a CSS file.

Grunt Test (running the testing case)

Run Jshint and Qunit automated test cases in a PHANTOMJS environment.

Grunt Docs (Build & Test the Docs assets)

Builds and tests CSS, JavaScript, and other assets which is used when running the documentation locally Viajekyll serve.

Grunt (re-build all content and run test cases)

Jekyll tools are required to compile and compress CSS and JavaScript files, to build document sites, to make HTML5 checks on documents, to regenerate resource files needed for custom tools, and so on. This is only useful if you are studying Bootstrap in depth.

What tools are used to write a CSS file in bootstrap by writing less files?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.