What is workflow in Yeoman to work with Sass files?

前端 未结 3 723
清歌不尽
清歌不尽 2021-01-31 02:51

I try to use yeoman but I don\'t know how to use my own sass files with it.

With

grunt server

Sass files are watched and compiled into

3条回答
  •  清歌不尽
    2021-01-31 03:14

    The actual magic for development is happening in

    mountFolder(connect, '.tmp'),
    

    for the connect-livereload middleware for grunt-contrib-watch.

    This makes the local server also serve the contents of the .tmp folder, which is why you can reference styles/main.css and get .tmp/styles/main.css in return.

    useminPrepare is usually never called in the server task.

提交回复
热议问题