1.1.2-alpha.0 • Published 5 years ago

@what-src/plugin v1.1.2-alpha.0

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

@what-src/plugin

what-src plugin bundle.

Check out the packages folder for more information.

Usage

First install the plugin from npm.

npm install @what-src/plugin --save-dev

what-src respects your systems $EDITOR environment variable (default: "vscode") Read here for more info.

babel (required)

Via .babelrc or babel-loader.

{
  "plugins": [
    "module:@what-src/plugin",
    ...
  ]
}

Webpack-Dev-Server

$ webpack.config.js


const { WhatSrcServerWebpackPlugin } = require('@what-src/plugin') // <- import plugin

...
module.exports = {
  mode: 'development',
  entry: './src/index.jsx',
  output: {
    filename: 'bundle.js',
  },
  ...
plugins: [new WhatSrcServerWebpackPlugin()] // <- add plugin
...
}
$ package.json
{
  ...
  "scripts": {
    ...
    "develop": "webpack-dev-server"
  },
  ...
}
npm run develop

NOTE: The server runs on port 8018 by default.

License

MIT

1.1.2-alpha.0

5 years ago

1.1.1-alpha.0

5 years ago

1.1.0-alpha.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago