본문 바로가기

Programming/FE Tooling

grunt-contrib-copy : Copy files from root of project to dist

Set cwd to '' instead of '/'.

    copy: {
      entry: {
        expand: true,
        cwd: '', <-- Set cwd to''
        src: ['index.html'],
        dest: 'dist/',
      },
    },