npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

@anansi/webpack-config

0.2.3 • Public • Published

@anansi/webpack-config

A webpack configuration for fast development and production ready optimizations

Usage

/webpack.config.babel.js

import { makeConfig } from '@anansi/webpack-config'
 
export const options = {
  basePath: 'src',
  buildDir: 'generated_assets/',
}
 
export default makeConfig(options)

/package.json

{
  "scripts": {
    "start:dev": "webpack-dev-server --config=webpack.config.babel.js --mode=development",
    "build": "webpack --config=webpack.config.babel.js --mode=production"
  }
}

Support

  • SCSS with CSS modules
    • Use ${basePath}/style/export.scss to add variables or mixins avaiable in all scss files
    • Put global styles within ${basePath}/style
    • Other styles will be treated as css modules
  • Web workers
  • All font formats
  • Any media files
  • And of course javascript

install

npm i @anansi/webpack-config

Downloadsweekly downloads

5

version

0.2.3

license

BSD-3-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability