Reputation: 21
I am using semantic ui less version and tried to compile it using gulp but not able to do this.
Can somebody give me an idea how to do this?
Upvotes: 0
Views: 282
Reputation: 5534
Please read the Getting Started guide for Semantic UI to learn how to use its build system.
In short, you need to do the following steps:
Install gulp using npm, the Node.js package manager:
npm install -g gulp
Download Semantic UI and navigate to its directory:
cd semantic-ui
Install all the project dependencies:
npm install
Run the installer. The installer will run automatically when you first run gulp in the Semantic UI directory with no arguments:
gulp
Follow the installer steps to configure Semantic UI as per your needs.
After this, you should be able to use the following gulp tasks:
gulp build
to rebuild Semantic UI from its sources (this includes its LESS files)gulp watch
to watch for changes in source files and automatically build when needed (or you can just use gulp
)gulp install
to re-run the installerUpvotes: 1
Reputation: 2873
you need to set up a build task to watch the files you are working on and process your less into css. Take a look at Grunt http://gruntjs.com/getting-started (or alternately at Gulp, which is another great task runner)
Here's an article about automating your workflow with grunt: http://kappataumu.com/articles/grunt-automate-your-webdev-workflow.html
this is the actual module that Grunt will use to process your less: https://www.npmjs.com/package/grunt-contrib-less but it will do so automatically once you have it set up
Upvotes: 1