{"_id":"@creditas-lib/microfrontend-webpack-config","_rev":"1-0b6734c5781d7ed2b6c5c6cc125fa8c7","name":"@creditas-lib/microfrontend-webpack-config","dist-tags":{"latest":"1.5.1"},"versions":{"1.5.1":{"name":"@creditas-lib/microfrontend-webpack-config","version":"1.5.1","description":"Some defaults for webpack configs at Creditas","license":"MIT","main":"src/main.js","repository":{"type":"git","url":"git+ssh://git@github.com/Creditas/microfrontend-webpack-config.git"},"author":{"name":"Guilherme Gregio","email":"guilherme.gregio@creditas.com.br"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["microfrontends","webpack","single-spa","react"],"peerDependencies":{"@babel/plugin-transform-runtime":">=7","@babel/runtime":">=7"},"dependencies":{"@babel/core":"^7.5.5","autoprefixer":"^9.5.1","babel-loader":"^8.0.5","clean-webpack-plugin":"^2.0.1","copy-webpack-plugin":"^5.0.3","css-loader":"^2.1.1","dotenv":"^7.0.0","dotenv-webpack":"^1.7.0","file-loader":"^5.0.2","html-webpack-plugin":"^4.0.0-alpha.7","kremling-loader":"^1.0.2","postcss-loader":"^3.0.0","ramda":"^0.27.0","react-dev-utils":"^9.0.0","style-loader":"^0.23.1","unused-files-webpack-plugin":"^3.4.0","url-loader":"^1.1.2","webpack":"^4.30.0","webpack-bundle-analyzer":"^3.3.2","webpack-merge":"^4.2.1"},"publishConfig":{"registry":"https://registry.npmjs.org"},"gitHead":"2c0110556e4af105698bc9734142704e100159b6","bugs":{"url":"https://github.com/Creditas/microfrontend-webpack-config/issues"},"homepage":"https://github.com/Creditas/microfrontend-webpack-config#readme","_id":"@creditas-lib/microfrontend-webpack-config@1.5.1","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-Pw82RVPblpcBaOokvoDKjjY224p7AB6+Gfg3xd0iBS7mdUgMU9/BmKY7zA+TlKNdblmHcL2TkCerDsFMjLlVMg==","shasum":"47dbb26b9db7bb943f027c773e6b645fb5067585","tarball":"https://registry.npmjs.org/@creditas-lib/microfrontend-webpack-config/-/microfrontend-webpack-config-1.5.1.tgz","fileCount":18,"unpackedSize":15594,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4TrFCRA9TVsSAnZWagAARpAP/A2jxdAOCR4d5XC4Vcs1\nl4+M1qoeH/wp7U1fQC1e6qGxv6tdTM9f5WNEOEsRspzE/rvH+4ytlp4qiHZM\nozkQAzZvi+f2dPIqF8dwQz+6SBYDCmiazSHzplG/MMm0/t7ohXLeW9Ylt5F9\nvcQ8C/veOFyoLPEzXk4cV68DQcK1bVeIPTyZBJXl3+MXgUaQjCzjqsTPuxg6\nL4IXdXYrq+OLUKuH88z8N/8BU0DodiEqmfecpvVI8knkRZfso1xol11RlZwF\nAJM/kWdVshZmLNzU9htE75gdDa4hqS2JKH2P9ypNB1JpGTNg1eGlHHq8daMb\n/sGPe8+pnLLGR1vPEixi0vpxfmWCnMtnzw3lyC0XmY5q4HX5FtRDXAMFFrSf\nF6msSqMlpZd23t9pEdh+i6Hg0mHiMmD2nBwrq7P5RdwtPbrpTN4Yclp+Nx4g\nSS6RNP8Ik7cvv80QyvV9g2RLqTt/k019AP2cVGbW3HrFbr5135/rz9rnOkcc\na3FhCKGKGhfXPAa+hQL9oZwXDsDgUsp1+rOGQYT+jA1vFpmAi4eghgRznjPx\nJN0yJC7YzlHPDDnMk+5gASM/ZonTL/iSrzPo84SC+btboK0ctLC3AYQavlOe\ncAdM2zbjGxHS7+KB5A6WfPVQChm45YngGnYqJEpU7w1WQLUNMExb8Z0khYaF\nukZn\r\n=OawL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzsNv/rNmusCcidPNEg4TfFqZEUbtUvLYjo/WZZs7pQAiEApCyXqG7Niq4CcJPqNIvmSedjeT7FF2eAc9XOf+K1iC8="}]},"maintainers":[{"name":"guilhermegregio","email":"guilherme@gregio.net"}],"_npmUser":{"name":"guilhermegregio","email":"guilherme@gregio.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/microfrontend-webpack-config_1.5.1_1591818948811_0.48493357266524195"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-10T19:55:48.519Z","1.5.1":"2020-06-10T19:55:48.954Z","modified":"2022-04-05T01:44:42.760Z"},"maintainers":[{"name":"guilhermegregio","email":"guilherme@gregio.net"}],"description":"Some defaults for webpack configs at Creditas","homepage":"https://github.com/Creditas/microfrontend-webpack-config#readme","keywords":["microfrontends","webpack","single-spa","react"],"repository":{"type":"git","url":"git+ssh://git@github.com/Creditas/microfrontend-webpack-config.git"},"author":{"name":"Guilherme Gregio","email":"guilherme.gregio@creditas.com.br"},"bugs":{"url":"https://github.com/Creditas/microfrontend-webpack-config/issues"},"license":"MIT","readme":"# microfrontend-webpack-config\nSome defaults for webpack configs at Creditas.\n\n## Usage\nFirst, install the library as a devDependency.\n```bash\nyarn add --dev @creditas/microfrontend-webpack-config @babel/runtime @babel/plugin-transform-runtime\n```\n\nNow create a webpack.config.js file. This file will use @creditas/microfrontned-webpack-config and allow you to override anything you want to about the defaults. Inside of the\nfile, call the `webpackConfigModuleApp()` function to get some defaults and add/override to your webpack config. See example below:\n\n```js\n// webpack.config.js\n\nconst {webpackConfigModuleApp} = require('@creditas/microfrontend-webpack-config')\n\nmodule.exports = webpackConfigModuleApp('calculator', {\n  // Override or add anything you want to your webpack config\n  module: {\n    rules: [\n      // e.g. apply a css loader if using css-modules\n      {loader: 'css-loader'},\n    ],\n  },\n})\n```\n\nFinally, create the following `scripts` in your package.json:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"webpack-dev-server --config ./webpack.config.js --env.standalone\",\n    \"start:single-spa\": \"webpack-dev-server --config ./webpack.config.js --port 8000\",\n    \"build\": \"webpack -p --config webpack.config.js --env.analyze=static\",\n    \"analyze\": \"webpack --config webpack.config.js --env.analyze=server\",\n  }\n}\n```\n\n## Debugging\nTo see your full webpack config, simply add a `--env.debug` to your webpack cli command.\n","readmeFilename":"README.md"}