3.13.10 • Published 9 years ago

webpack-brevity v3.13.10

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
9 years ago

Make Webpack configurations easier

npm Version Build Status

Why?

  • Focus only on the variations of Webpack configs among projects
  • Reduce Webpack related dependencies from your projects
  • Break down configs into chunks for easier maintenance
  • Employ modern settings for SPA (Hot Reload, babel-loader, postcss-loader, ExtractTextPlugin, Service Worker, Code Splitting etc.)

Installation

yarn add webpack-brevity

Usage

With built-in Babel, Css Module and PostCss loader, you can inject dependencies without touching underlying content.

Example:

import path from 'path'
import transform from 'webpack-brevity'

export default transform({
  entry: {
    app: path.resolve('./src/app.js'),
    vendor: [
      'normalize.css',
    ],
  },
  output: path.resolve('./public'),
  context: path.resolve('./src'),
})

You can add additional configs or override the webpack configs as well:

export default configs({
  // Core configs
  entry: path.resolve('./src/app.js'),
  output: path.resolve('./public'),
  context: path.resolve('./src'),

  // Override configs
  node: {
    net: 'empty',
    tls: 'empty',
    dns: 'empty',
  },

  // Custom meta and link tags
  name: 'Web Instant',
  title: 'Web Instant | A tool that generates web app instantly',
  description: 'Create and Start your web application instantly - web-instant.io',

  // Google Analytics tracking id
  ga: 'UA-XXXX-XX',

  // Copy static assets
  copy: [{
    from: '',
    to: '',
  }],
})
3.13.10

9 years ago

3.13.9

9 years ago

3.13.8

9 years ago

3.13.7

9 years ago

3.13.6

9 years ago

3.13.5

9 years ago

3.13.4

9 years ago

3.13.3

9 years ago

3.13.2

9 years ago

3.13.1

9 years ago

3.13.0

9 years ago

3.12.4

9 years ago

3.12.3

9 years ago

3.12.2

9 years ago

3.12.1

9 years ago

3.12.0

9 years ago

3.11.2

9 years ago

3.11.1

9 years ago

3.11.0

9 years ago

3.10.0

9 years ago

3.9.6

9 years ago

3.9.5

9 years ago

3.9.4

9 years ago

3.9.3

9 years ago

3.9.2

9 years ago

3.9.1

9 years ago

3.9.0

9 years ago

3.8.1

9 years ago

3.8.0

9 years ago

3.7.2

9 years ago

3.7.1

9 years ago

3.7.0

9 years ago

3.6.3

9 years ago

3.6.2

9 years ago

3.6.1

9 years ago

3.6.0

9 years ago

3.5.6

9 years ago

3.5.5

9 years ago

3.5.3

9 years ago

3.5.2

9 years ago

3.5.1

9 years ago

3.5.0

9 years ago

3.4.3

9 years ago

3.4.2

9 years ago

3.4.0

9 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.1.2

9 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.10

9 years ago

3.0.9

9 years ago

3.0.8

9 years ago

3.0.7

9 years ago

3.0.6

9 years ago

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.2.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.11

9 years ago

2.0.10

9 years ago

2.0.9

9 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.8.5

9 years ago

1.8.4

9 years ago

1.8.3

9 years ago

1.8.2

9 years ago

1.8.1

9 years ago

1.8.0

9 years ago

1.7.9

9 years ago

1.7.8

9 years ago

1.7.7

9 years ago

1.7.6

9 years ago

1.7.5

9 years ago

1.7.4

9 years ago

1.7.3

9 years ago

1.7.2

9 years ago

1.7.1

9 years ago

1.7.0

9 years ago

1.6.9

9 years ago

1.6.8

9 years ago

1.6.7

9 years ago

1.6.6

9 years ago

1.6.5

9 years ago

1.6.4

9 years ago

1.6.3

9 years ago

1.6.2

9 years ago

1.6.1

9 years ago

1.6.0

9 years ago

1.5.5

9 years ago

1.5.4

9 years ago

1.5.3

9 years ago

1.5.2

9 years ago

1.5.1

9 years ago

1.5.0

9 years ago

1.4.2

9 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.9

10 years ago

1.3.8

10 years ago

1.3.7

10 years ago

1.3.6

10 years ago

1.3.5

10 years ago

1.3.4

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.8

10 years ago

1.2.7

10 years ago

1.2.6

10 years ago

1.2.5

10 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago