Skip to content

Commit 79cc283

Browse files
committed
demo updates
1 parent e993a9c commit 79cc283

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed
File renamed without changes.

docs/js/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "webpack --mode development --watch",
88
"build": "babel lib -d build",
9+
"build-demo": "webpack --mode production",
910
"eslint": "eslint lib/*.js lib/*.jsx"
1011
},
1112
"repository": {

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ const path = require('path');
22
const webpack = require('webpack');
33

44
module.exports = {
5-
entry: './lib/main.jsx',
5+
entry: './lib/demo.jsx',
66
mode: process.env.WEBPACK_SERVE ? 'development' : 'production',
77
output: {
8-
path: path.resolve(__dirname, 'build'),
9-
filename: '.js'
8+
path: path.resolve(__dirname, 'docs/js'),
9+
filename: 'bundle.js'
1010
},
1111
resolve: {
1212
extensions: ['*', '.js', '.jsx']

0 commit comments

Comments
 (0)