提交 3f0c832b 编写于 作者: K Kamran Ahmed

Re-organize config

上级 435367b6
......@@ -4,4 +4,5 @@
index.html
server.js
demo
config
dist/demo
......@@ -6,8 +6,8 @@
"types": "types/index.d.ts",
"scripts": {
"start": "node server.js",
"build-demo": "NODE_ENV=production webpack --config webpack.config.demo.js",
"build": "webpack --config webpack.config.prod.js"
"build-demo": "NODE_ENV=production webpack --config config/webpack.config.demo.js",
"build": "webpack --config config/webpack.config.prod.js"
},
"bugs": {
"url": "https://github.com/kamranahmedse/driver.js/issues"
......
......@@ -2,7 +2,7 @@ const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const opn = require('opn');
const config = require('./webpack.config.demo');
const config = require('./config/webpack.config.demo');
const PORT = 3000;
const HOST = 'localhost';
......@@ -13,6 +13,7 @@ new WebpackDevServer(webpack(config), {
}).listen(PORT, HOST, (error, result) => {
if (error) {
console.error(error);
return;
}
opn(URL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册