2.6.4 • Published 5 months ago

@jpapini/webpack-config v2.6.4

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

Webpack configuration

Custom Webpack configuration for bundling projects.

Available configurations:

  • React.js projects: createReactAppWebpackConfig
  • Nest.js projects: createNestAppWebpackConfig

How to use

  1. Install the package and its required peer dependencies:
pnpm add -D @jpapini/webpack-config @swc/core webpack webpack-cli webpack-dev-server
  1. Create a webpack.config.js file with the following content:

For ESM projects:

import url from 'node:url';
import { createNestAppWebpackConfig } from '@jpapini/webpack-config';

export default createNestAppWebpackConfig(url.fileURLToPath(new URL('.', import.meta.url)));

Or for CommonJS projects:

const path = require('node:path');

const { createNestAppWebpackConfig } = require('@jpapini/webpack-config');

module.exports = createNestAppWebpackConfig(path.resolve(__dirname));
  1. Edit the package.json file to add the following scripts:
{
    "scripts": {
        "dev": "webpack watch",
        "build": "webpack build"
    }
}

Author

2.3.0

9 months ago

2.1.2

10 months ago

2.2.0

10 months ago

2.1.1

11 months ago

2.5.0

9 months ago

2.4.0

9 months ago

2.1.3

10 months ago

2.6.1

7 months ago

2.5.2

8 months ago

2.6.0

7 months ago

2.5.1

8 months ago

2.6.3

5 months ago

2.5.4

8 months ago

2.6.2

7 months ago

2.5.3

8 months ago

2.1.0

11 months ago

2.0.0

11 months ago

2.6.4

5 months ago

1.5.9

11 months ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago