Skip to content

Latest commit

 

History

History
78 lines (61 loc) · 1.43 KB

README.md

File metadata and controls

78 lines (61 loc) · 1.43 KB

grunt-swc

npm Code style: prettier license

Install

$ npm install --save-dev grunt-swc @swc/core
# or
$ yarn add --dev grunt-swc @swc/core

Usage

Option with load-grunt-tasks

require("load-grunt-tasks")(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
  swc: {
    options: {
      sourceMaps: true,
    },
    dist: {
      files: {
        "dist/app.js": "src/app.js",
      },
    },
  },
});

grunt.registerTask("default", ["swc"]);

Option with loadNpmTasks

grunt.initConfig({
  swc: {
    options: {
      sourceMaps: true,
    },
    dist: {
      files: {
        "dist/app.js": "src/app.js",
      },
    },
  },
});

grunt.loadNpmTasks("grunt-swc");

grunt.registerTask("default", ["swc"]);

Options

See the SWC options.

License

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

Code and documentation are available according to the MIT License (see LICENSE).