Skip to content

steroids/react-webpack

Repository files navigation

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');

About

SteroidsJS webpack bundler

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 8