0.1.24 • Published 1 year ago

macross-bundler v0.1.24

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Macross Bundler

Macross Bundler is the managed Webpack config scripts that simplify your web app configurations.

If you're create a new web app, please use the create-macross-app command line:

npx create-macross-app my-app
cd my-app
npm run start

If you want to integrate the macross-bundle to your existing application, please find the steps below:

Install

Make sure you have Node.js version >= 16 installed on your system, run:

npm install --save-dev macross-bundler

Usage

Modify package.json:

{
    "scripts": {
      "start": "macross-bundler start",
      "build": "macross-bundler build"
    }
}

Run:

npm run start

Build:

npm run build

Configuration

Example configuration:

macross.config.js

export default {
  entries: {
    'index': './src/index.js',
  },
  publicDir: './templates',
  outDir: '../resources/static',
  templateOurDir: '../resources/templates',
  cdnPrefixUrl: 'https://cdn.rakuten.co.jp',
  backendProxy: 'http://websearch.rakuten.co.jp',
  devServerPort: 1234,
}