0.7.9 • Published 9 months ago

@taqtile/ts-webpack-builder v0.7.9

Weekly downloads
146
License
MIT
Repository
github
Last release
9 months ago

ts-webpack-builder

A functional builder for webpack config written in Typescript.

This package was heavily inspired on webpack-blocks.

Basic usage

import {
  createConfig,
  setEntry,
  setOutput,
  setPlugin,
} from '@taqtile/ts-webpack-builder';

module.exports = createConfig([
  setEntry({
    app: './src/app.ts',
  }),
  addRule(/\.ts?$/, 'awesome-typescript-loader', [/node_modules/]),
  setOutput({
    path: root('dist/public'),
    filename: '[name].bundle.js',
    sourceMapFilename: '[name].map',
    chunkFilename: '[name].chunk.js',
  }),
  onCondition(process.env.ENV === 'development', [
    setDevServer({
      port: +process.env.PORT,
      host: process.env.HOST,
    })
  ]),
]);
0.7.9

9 months ago

0.7.6

9 months ago

0.7.5

9 months ago

0.7.8

9 months ago

0.7.7

9 months ago

0.7.2

9 months ago

0.7.4

9 months ago

0.7.3

9 months ago

0.7.1

2 years ago

0.6.0

3 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.3-alpha.1

5 years ago

0.3.3-alpha.0

5 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago