lozinsky / cname-webpack-plugin

Create a CNAME file with webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cname-webpack-plugin · CI CD npm version

Create a CNAME file with webpack.

Installation

npm i cname-webpack-plugin -D

Usage

Add to webpack.config.js:

const CnameWebpackPlugin = require('cname-webpack-plugin');

module.exports = {
  plugins: [
    new CnameWebpackPlugin({
      domain: 'example.com',
    }),
  ],
};

About

Create a CNAME file with webpack

License:MIT License


Languages

Language:JavaScript 100.0%