mirror of
https://github.com/infeng/react-viewer.git
synced 2025-12-08 17:36:40 +00:00
change entry folder to demo folder
This commit is contained in:
parent
ed5dcd273e
commit
aa50d3e5eb
@ -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",
|
||||
|
||||
@ -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 = '/';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user