1.0.7 • Published 6 years ago

watch-source-code-plugin v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

watch-source-code-plugin

Source code files used by webpack-dev-server is rendered in watch mode at user specified directory through override create-react-app webpack configs without ejecting.

Installation

yarn add --dev watch-source-code-plugin

or

npm install --save-dev  watch-source-code-plugin

Usage

In the config-overrides.js (refer : react-app-rewired) you created for watch-source-code-plugin add this code:

const { rewireSourceCodeBundle } = require('watch-source-code-plugin');

/* config-overrides.js */
module.exports = function override(config, env) {
  return rewireSourceCodeBundle(config, env, { publicPath : '<path of render directory i.e. '../server/build' >' });
}

Inspirations

write-file-webpack-plugin by @gajus

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3-rc.2

6 years ago

1.0.3-rc.1

6 years ago

1.0.3-rc.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago