0.0.5 • Published 6 years ago

@lithiumlron/webpack-partials v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

webpack-partials

webpack-partials provides a set of configuration objects used to quickly compose webpack configuration.

Prerequisites

  1. Understand how webpack works and what it can do for you.
  2. Ensure webpack 2+ and webpack-merge are installed in your project.

Resources

Installation

npm install @lithiumlron/webpack-partials

Usage

// Import modules.
const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const webpackPartials = require('@lithiumlron/webpack-partials');

// Write webpack configuration.
module.exports = webpackMerge([
  // Base webpack configuration
  {/* ... */},
  // Add partial.
  webpackPartials.devServer({
    host: 'localhost',
    port: '3000'
  }),
  // Add another partial.
  webpackPartials.loadCSS()
]);

Available Tasks

  • Extract CSS
  • Load CSS
  • Start local development server
  • Process CSS (post-build)
0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.0

7 years ago