npm init
and press enter.index.js
or the main file you are using for your project.npm install --save-dev grunt
and press enter.npm install --save-dev grunt-contrib-watch
to install the watch task.npm install --save-dev grunt-contrib-concat
to install the concat task.npm install --save-dev grunt-contrib-uglify
to install the uglify task.npm install --save-dev grunt-contrib-sass
to install the sass task.package.json
file:"devDependencies": {
"grunt": "^1.4.1",
"grunt-contrib-watch": "^1.1.0",
"grunt-contrib-concat": "^2.0.0",
"grunt-contrib-uglify": "^5.0.1",
"grunt-contrib-sass": "^3.1.0"
}
package.json
file and run the command npm install
in the terminal or command prompt to install all the dependencies.Asked: 2023-07-02 22:00:24 +0000
Seen: 12 times
Last updated: Jul 02 '23