Skip to content

Latest commit

 

History

History
 
 

webpack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@stellar-apps/webpack

Used for creating webpack configurations for Stellar apps with predefined development and production configs.

The configs provided to the createDevelopment and createProduction functions are merged to the default config in those functions and the default config in createConfig.

See the src code to view the default configs.

This also comes packaged with a startDevServer function which creates a Webpack development server with the provided config, port, and webpack-dev-server options.

Installation

yarn add @stellar-apps/webpack

Usage

const {createDevelopment, createProduction} = require('@stellar-apps/webpack')

const myDevConfig = createDevelopment({
  ...devConfigs
})

const myProdConfig = createProduction({
  ...prodConfigs
})

startDevServer (options <Object>)

  • options