我下载了这个reactJS项目https://github.com/booleanhunter/ReactJS-AdminLTE。进行任何更改都没有反映在浏览器中。我正在命令下运行:
npm run build
显示:
> adminlte-reactjs@1.0.6 build /home/manish/do_practice/admin-lte
> webpack -p --config ./webpack.production.config.js
Hash: 3e7c0fb0bc633a60f191
Version: webpack 1.15.0
Time: 3716ms
Asset Size Chunks Chunk Names
./reactjsAdminlte.js 86.5 kB 0 [emitted] reactjsAdminlte
./reactjsAdminlte.js.map 139 bytes 0 [emitted] reactjsAdminlte
+ 37 hidden modules
WARNING in ./reactjsAdminlte.js from UglifyJs
Condition always true [./~/velocity-animate/velocity.js:429,2]
Dropping unreachable code [./~/velocity-animate/velocity.js:433,0]
Side effects in initialization of unused variable a [./src/components/chat-box/chat-box.js:54,20]
Dropping unused variable button [./src/components/custom-box/box-tool.js:24,11]
Dropping unused variable that [./src/components/info-tile/progress-bar.js:15,20]
然后我执行:npm run dev
它显示:
> adminlte-reactjs@1.0.6 dev /home/manish/do_practice/admin-lte
> node server.js
Server listening at port 8000