@steroidsjs/webpack

4.0.5 • Public • Published

Steroids Webpack

Configure webpack easily!

Create webpack.js file in project root dir:

require('@steroidsjs/webpack')
    .config({
        baseUrl: 'frontend/',
        staticPath: '',
        sourcePath: __dirname + '/src',
        devServer: {
            historyApiFallback: {
                index: '/frontend/index.html',
            },
            proxy: [
                {
                    context: ['/api'],
                    target: process.env.APP_BACKEND_URL || 'http://api-for-my-project.loc',
                    changeOrigin: true,
                },
            ],
        },
    })
    .base(__dirname + '/src/index.tsx');

Readme

Keywords

none

Package Sidebar

Install

npm i @steroidsjs/webpack

Weekly Downloads

105

Version

4.0.5

License

MIT

Unpacked Size

52.8 kB

Total Files

27

Last publish

Collaborators

  • moondela
  • thesamebear
  • syomx
  • stiivenson
  • affka
  • krydenk
  • perlexed
  • dmartynov