Move entry to src/index

Our webpack/babel configs require the src/ structure for source files
This commit is contained in:
Paul Kaplan 2018-06-05 09:01:49 -04:00
parent f4a33b6c12
commit 39df53fad3
3 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"name": "scratch-render-fonts", "name": "scratch-render-fonts",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "./fonts.js", "main": "./src/index.js",
"author": "Massachusetts Institute of Technology", "author": "Massachusetts Institute of Technology",
"repository": { "repository": {
"type": "git", "type": "git",

View file

@ -5,7 +5,7 @@ const base = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development', mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
devtool: 'cheap-module-source-map', devtool: 'cheap-module-source-map',
entry: { entry: {
'scratch-render-fonts': './fonts.js' 'scratch-render-fonts': './src/index.js'
}, },
module: { module: {
rules: [{ rules: [{