1.6.2 • Published 4 years ago
medpack v1.6.2
⛑ Medpack
Zero-to-slim config webpack wrapper
Table of Contents
Installation
$ yarn add --dev medpack
$ npm install --save-dev medpack
Usage
Medpack just works out of the box. If you need more flexibility, add a medpack.js
config file to the root of your directory:
import medpack from 'medpack'
export default medpack({
paths: {
appPath: './src/entry.js',
},
env: {
SHOW_DEBUG: true,
},
webpack: config => {
config.entry = ['src/random.js', ...config.entry];
return config;
}
})
Commands
medpack start
- Spins up your local development server with hot reloading enabledmedpack build
- Creates a production-optimized build ready to be distributedmedpack test
- Runs your tests with jest
Hot Reloading
Medpack uses react-hot-loader under the hood . Opt-in to hot reloading by wrapping your top most component with the hot
HOC.
// App.js
import { hot } from 'react-hot-loader/root'
const App = () => <div>Hello World!</div>
export default hot(App);
Note: in production,
hot
does nothing and just passes App through.
1.6.2
4 years ago
1.6.1
4 years ago
1.6.0
4 years ago
1.5.0
4 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.8
6 years ago
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
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago