From 39df53fad3e8cd3a69ee57d24b43fb1a4425a035 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 5 Jun 2018 09:01:49 -0400 Subject: [PATCH] Move entry to src/index Our webpack/babel configs require the src/ structure for source files --- package.json | 2 +- fonts.js => src/index.js | 0 webpack.config.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename fonts.js => src/index.js (100%) diff --git a/package.json b/package.json index 1b608c4..da7e655 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "scratch-render-fonts", "version": "1.0.0", "description": "", - "main": "./fonts.js", + "main": "./src/index.js", "author": "Massachusetts Institute of Technology", "repository": { "type": "git", diff --git a/fonts.js b/src/index.js similarity index 100% rename from fonts.js rename to src/index.js diff --git a/webpack.config.js b/webpack.config.js index a4b8a71..06ff19e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,7 +5,7 @@ const base = { mode: process.env.NODE_ENV === 'production' ? 'production' : 'development', devtool: 'cheap-module-source-map', entry: { - 'scratch-render-fonts': './fonts.js' + 'scratch-render-fonts': './src/index.js' }, module: { rules: [{