Webpack: css not loading in production

Created on 16 Sep 2016  路  1Comment  路  Source: vuejs-templates/webpack

Production site loads without css, but during dev all is perfect.
Investigation:
npm run dev, all works great,
npm run build, show that ./dist/static/css contains the app.xxx.css and the page has a to that file, but still no css loads from it. Might it be my Nginx con

Most helpful comment

Was an Nginx issue, not Webpack's. All files were there but my Nginx conf file was missing:

http {
  default_type application/octet-stream;
  include  /etc/nginx/mime.types;
 [...]
}

Sorry to bother here...

>All comments

Was an Nginx issue, not Webpack's. All files were there but my Nginx conf file was missing:

http {
  default_type application/octet-stream;
  include  /etc/nginx/mime.types;
 [...]
}

Sorry to bother here...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Splode picture Splode  路  3Comments

akoboy picture akoboy  路  3Comments

SSmale picture SSmale  路  3Comments

brucejcw picture brucejcw  路  4Comments

Joshfindit picture Joshfindit  路  3Comments