ngx-admin
ngx-admin copied to clipboard
Differences in screen fit between running and deployed application
Issue type
I'm submitting a ... (check one with "x")
- [x] bug report
- [ ] feature request
- [ ] question about the decisions made in the repository
Issue description
Current behavior:
Running application with ng serve --o, the screen behaves responsive way. Otherwise, in deploy way with Express after build prod, the screen behaves differently.
Expected behavior:
The behavior needs be the same. Steps to reproduce:
Run application with ng serve --o and after that deploy it into server, in my case, Express, with build prod. We have two different result with the help of DevTools. Related code:
insert short code snippets here
```server.js Content
const express = require('express');
const app = express();
const port = process.env.PORT || 8080;
app.use(express.static(__dirname + '/dist'));
app.get('/*', (req, res) => {
res.sendFile(__dirname + '/dist/index.html');
});
app.listen(port, () => {
console.log('Servidor iniciado na porta ' + port);
})
### Other information:
Node v12.18.1, npm v6.14.5
OS: Windows (10).
Browser: Chrome
**Angular, Nebular**
See https://github.com/akveo/ngx-admin/issues/5906