diff --git a/package.json b/package.json index d788197..9155f42 100644 --- a/package.json +++ b/package.json @@ -12,5 +12,8 @@ "react": "^15.4.2", "react-dom": "^15.4.2", "webpack": "^1.14.0" + }, + "scripts": { + "start": "node_modules/.bin/webpack --config webpack.config.js" } } diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..7279ae2 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,11 @@ +var path = require('path'); + +const config = { + entry: './src/App.js', + output: { + path: path.resolve(__dirname, 'public'), + filename: 'App.js' + } +} + +module.exports = config;