From 4a22e96b2dbaf381322330daeec08459c7cd8da4 Mon Sep 17 00:00:00 2001 From: "PSSEA\\daniellef" Date: Tue, 15 Jan 2019 14:35:15 -0800 Subject: [PATCH] fix main entry for package.json --- package.json | 4 ++-- webpack.config.js | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 2275729..a610394 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-beret", - "version": "0.1.1", + "version": "0.1.2", "description": "React components for your web page's tracking, assets, and more", "author": "Jim Skerritt ", "license": "MIT", @@ -21,7 +21,7 @@ "publishConfig": { "registry": "https://registry.npmjs.org" }, - "main": "./index.js", + "main": "lib", "scripts": { "build": "webpack --mode=production", "example": "node examples/index.js", diff --git a/webpack.config.js b/webpack.config.js index 07ec290..6527df5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,12 +3,7 @@ const path = require('path'); module.exports = { mode: 'production', entry: { - Ads: './src/components/Ads.js', - Favicons: './src/components/Favicons.js', - Gtm: './src/components/Gtm.js', - GtmNoScript: './src/components/GtmNoScript.js', - Vwo: './src/components/Vwo.js', - WebFont: './src/components/WebFont.js', + index: path.resolve(__dirname, './src/components/index.js') }, output: { path: path.resolve(__dirname, 'lib'),