rax-webpack-config
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

rax-webpack-config npm

Installation

npm install rax-webpack-config

Parameters

config

  • rootDir
  • command command is 'start' or 'build'
  • babelConfig

Example

const getWebpackBase = require('rax-webpack-config');
const getBabelConfig = require('rax-babel-config');

const babelConfig = getBabelConfig({
  styleSheet: true,
});

const config = getWebpackBase({
  ...context, 
  babelConfig: babelConfig,
});

config.module.rule('tsx')
  .use('ts')
  .loader(require.resolve('ts-loader'))
  .options({
    transpileOnly: true,
  });

Readme

Keywords

none

Package Sidebar

Install

npm i rax-webpack-config

Weekly Downloads

16

Version

4.0.1

License

BSD-3-Clause

Unpacked Size

16.5 kB

Total Files

20

Last publish

Collaborators

  • yacheng
  • rax-publisher