gulpfile.js
| 1 | const gulp = require('gulp'); | 
package.json
| 1 | { | 
项目结构目录

用法
| 1 | cd src | 
附加
前端经常需要讲生成的目录拷贝到后端目录下,但对于django这样的后端,有其特定的语法,所以需要加上一些特定的标签,使用全局替换:1
2
3"\./([^\s]+)"  替换成  "{% static 'newyear/$1' %}"  // newyear表示项目名称
html头部加:{% load staticfiles %}