change entry folder to demo folder

This commit is contained in:
infeng 2016-10-12 16:45:25 +08:00
parent ed5dcd273e
commit aa50d3e5eb
4 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"main": "dist/ViewerWrap",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "dora --port 8001 --plugins \"webpack,webpack-hmr,browser-history?index=/entry/index.html\""
"start": "dora --port 8001 --plugins \"webpack,webpack-hmr,browser-history?index=/demo/index.html\""
},
"repository": {
"type": "git",

View File

@ -3,7 +3,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
var conf = {
filename: 'index.html',
template: './entry/index.html',
template: './demo/index.html',
inject: true,
minify: {
removeComments: true,
@ -14,7 +14,7 @@ var conf = {
module.exports = function (webpackConfig) {
webpackConfig.entry = {
index: './entry/index.tsx',
index: './demo/index.tsx',
};
webpackConfig.output.publicPath = '/';