0.1.4 • Published 2 years ago

craco-multiple-page v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

craco-multiple-pages

Install

# npm 
npm install -D craco-multiple-page
# or yarn
yarn add craco-multiple-page -D

Usage

// define in craco config file, such like: craco.config.{js, ts}
const CracoMultiplePage = require('craco-multiple-page')
module.exports = {
  plugins: [
    {
      plugin: CracoMultiplePage,
      options: {
        pages: [
          {
            name: 'index',
            template: './src/pages/auth/index.html',
            entry: './src/pages/auth/index.tsx',
          },
          {
            name: 'app',
            template: './src/pages/app/index.html',
            entry: './src/pages/app/index.tsx',
          },
        ],
      },
    },
  ]
}
0.1.4

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.3

2 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago