JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q41160F
  • License MIT

A webpack plugin that outputs the content compiled by webpack-dev-server to the file system.

Package Exports

  • webpack-serve-output
  • webpack-serve-output/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webpack-serve-output) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

webpack-serve-output

webpack-serve-output can outputs content compiled by webpack-dev-server to the file system, and the files can be hot updated.

NPM version GITHUB star MIT-license

Installation

npm install webpack-serve-output

Usage

Add webpack-serve-output to plugins in the webpack.config.js file, it will output content compiled by webpack-dev-server to the file system when the serve is running.

The output directory is output.path in the config of webpack by default.

// webpack.config.js

const WebpackServeOutput = require('webpack-serve-output');

module.exports = {
  // ...other config
  plugins: [new WebpackServeOutput()],
};

Specifies the output directory:

// webpack.config.js

const path = require('path');
const WebpackServeOutput = require('webpack-serve-output');

module.exports = {
  // ...other config
  plugins: [new WebpackServeOutput({
    outputPath: path.resolve(__dirname, './output')
  })],
};

License

Licensed under MIT

Copyright (c) 2022 zhoulixiang