pmg1989 / dva-admin

dva admin antd dashboard
https://pmg1989.github.io
MIT License
284 stars 93 forks source link

OpenSSL & please trust the rootCA.crt ??? #22

Closed xyzdata closed 7 years ago

xyzdata commented 7 years ago

rootCA.key

error


E:\github\Roles>npm start

> @ start E:\github\Roles
> dora --plugins "proxy,webpack,webpack-hmr"

          proxy: load rule from proxy.config.js
(node:9032) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
          proxy: listened on 8989
temp certs cleared
1/3 build modulesWARNING: can't open config file: C:/OpenSSL/openssl.cnf
Generating RSA private key, 2048 bit long modulus
.............+++
...................................................+++
e is 65537 (0x10001)
WARNING: can't open config file: C:/OpenSSL/openssl.cnf
Unable to load config info from C:/OpenSSL/openssl.cnf
=============
rootCA generated at :
C:\Users\Admin\.anyproxy_certs
=============
rootCA generated
please trust the rootCA.crt in C:\Users\Admin\.anyproxy_certs\
or you may get it via anyproxy webinterface
 1691/1691 build modules
webpack: bundle build is now finished.
xyzdata commented 7 years ago

what's wrong with this?

xyzdata commented 7 years ago

webpackJsonp error

Uncaught ReferenceError: webpackJsonp is not defined ???

pmg1989 commented 7 years ago

开发使用npm run dev吧,start命令行暂时没有用

xyzdata commented 7 years ago

Thanks, it works, now!


    "scripts": {
        "dev": "dora --plugins \"webpack?config=conf/webpack.config.js&publicPath=/,webpack-hmr,browser-history?index=/src/index.html\"",
        "build-dev": "atool-build --config conf/webpack.config.js --publicPath /",
        "build-staging": "atool-build --config conf/webpack.config.staging.js --publicPath /",
        "build-release": "atool-build --config conf/webpack.config.release.js --publicPath /",
        "start": "dora --plugins \"proxy,webpack,webpack-hmr\"",
        "lint": "eslint --fix --ext .js,.jsx src/components/layout"
    },

Enhancement wanted

Please, adding a feature that can auto open default browser on http://localhost:8000/, instead of just print some info on the console, just like react-create-app / ng2 CLI did!

xyzdata commented 7 years ago

npm scripts & auto open default browser & run multi commands

just using the following npm script to replace the old one.

"start": "dora --plugins \"proxy,webpack,webpack-hmr\"",


"start": "start http://localhost:8000 && npm run dev",
xyzdata commented 7 years ago

for more infos, please look into the below refs links!

npm-run-all & concurrently

https://www.npmjs.com/package/concurrently

https://www.npmjs.com/package/npm-run-all