Skip to content

lozinsky/cname-webpack-plugin

Repository files navigation

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',
    }),
  ],
};