Advertisement
Guest User

Untitled

a guest
Jan 14th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cd project
  2. npm install -g grunt-cli
  3. npm install grunt-contrib-sass --save-dev //установка sass-плагина
  4.  
  5. nano Gruntfile.js
  6.  
  7. //Содержимое ниже
  8.  
  9. grunt.initConfig({
  10.   sass: {                              // Task
  11.     dist: {                            // Target
  12.       options: {                       // Target options
  13.         style: 'expanded'
  14.       },
  15.       files: {                         // Dictionary of files
  16.         'main.css': 'main.scss',       // 'destination': 'source'
  17.         'widgets.css': 'widgets.scss'
  18.       }
  19.     }
  20.   }
  21. });
  22.  
  23. grunt.loadNpmTasks('grunt-contrib-sass');
  24. grunt.registerTask('default', ['sass']);
  25.  
  26. //End of Содержимое
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement