1.10.3 • Published 3 years ago

@ciro-maciel/webpack-config v1.10.3

Weekly downloads
-
License
CC-BY-NC-SA-4.0
Repository
github
Last release
3 years ago

ciro-maciel - webpack-config deploy to Prod

webpack configuration for development Applications

This is our shared Webpack config used for front-end projects at ciro-maciel.me. It compiles JavaScript with Babel. It is also configured to add hashes to filenames for easy caching.

Getting Started

Install this package via NPM:

npm install @ciro-maciel/webpack-config --save-dev

Add some scripts to your package.json:

{
  // ...
  "scripts": {
    "start": "webpack --env=dev",
    "build": "webpack --env=prod",
  }
}

Create a webpack.config.js in your project directory, and set it up like so:

const configure = require("@ciro-maciel/webpack-config");

module.exports = configure({
  entry: {
    // Add your bundles here, so in this case
    // ./src/app.js ==> ./dist/app-[hash].js
    app: "./src/app.js",
  },
  __dirname,
  // Override any other Webpack settings here!
  // see: https://webpack.js.org/configuration/
});

Now you can run npm start to build with source maps and watch for changes, and npm run build to build optimized assets for production! If you need to further customize your build, you can pass any overrides in to the configure function.

base project performance

License

© ciro-maciel.me. Our Webpack config is free software, and may be redistributed under the terms specified in the LICENSE file. The name and logo for ciro-maciel.me are trademarks of Ciro Cesar Maciel and may not be used without permission.

1.10.3

3 years ago

1.10.2

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.11

3 years ago

1.3.10

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago