Neutered Paranoid Meerkat

    @steroidsjs/webpack

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

    Keywords

    none

    Install

    npm i @steroidsjs/webpack

    DownloadsWeekly Downloads

    4

    Version

    2.2.2

    License

    MIT

    Unpacked Size

    52 kB

    Total Files

    26

    Last publish

    Collaborators

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