diff --git a/README.md b/README.md index fe9447a6..91bae294 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,13 @@ This command will start a `webpack-dev-server` with content of `dev` folder. npm run dev ``` +## See Examples in Action +This command will start a `webpack-dev-server` and open your browser in the root folder. From there, +you may click on `examples` and choose an example folder. +```bash +npm run examples +``` + ## Build This command will build a distributable version in the `dist` directory. ```bash diff --git a/package.json b/package.json index 3553883a..b71b51f9 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "build:full": "cross-env FULL_BUNDLE=true webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=true", "build": "npm run build:core && npm run build:full", "dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/", + "examples": "webpack-dev-server --config webpack.dev.config.js --no-info --inline --hot --content-base ./ --open", "lint": "eslint --ext=.js,.vue src test/unit/specs", "coverall": "cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "coverage": "npm run test && npm run coverall",