webpack-config-starter

0.0.33 • Public • Published
npm i --save webpack-config-starter

Add a webpack.config.js file to the root of your project and include:

module.exports = require("webpack-config-starter")

Add a webpack block to package.json with your entry files:

"webpack": {
	"entry": {
		"index.html": "./src/index.html",
		"index.js": "./src/index.js"
	},
}

Want to expose environment variables to your javascript? Use a .env file in the root of your project. The variables will be accessible on process.env, such as process.env.PUBLIC_KEY.

PUBLIC_KEY=asdf

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-config-starter

Weekly Downloads

0

Version

0.0.33

License

MIT

Unpacked Size

39 kB

Total Files

8

Last publish

Collaborators

  • itsleeowen