1.0.7 • Published 2 years ago

webpack-serve-output v1.0.7

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

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

1.0.7

2 years ago

1.0.6-beta.1

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago