Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
Fixes awful issue where CSS on production differs from dev
Browse files Browse the repository at this point in the history
The solution was upgrading vue-loader. vuejs/vue-loader#521
  • Loading branch information
holmesworcester committed Oct 25, 2018
1 parent e1fb891 commit 222d2c5
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 146 deletions.
4 changes: 4 additions & 0 deletions build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require('path')
const utils = require('./utils')
const config = require('../config')
const vueLoaderConfig = require('./vue-loader.conf')
const VueLoaderPlugin = require('vue-loader/lib/plugin')

function resolve (dir) {
return path.join(__dirname, '..', dir)
Expand All @@ -11,6 +12,9 @@ function resolve (dir) {


module.exports = {
plugins: [
new VueLoaderPlugin()
],
context: path.resolve(__dirname, '../'),
entry: {
app: './src/main.js'
Expand Down
220 changes: 75 additions & 145 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"url-loader": "^1.1.1",
"vue-gh-pages": "^1.19.0",
"vue-jest": "^1.0.2",
"vue-loader": "^13.3.0",
"vue-loader": "^15.4.2",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.6.0",
Expand Down

0 comments on commit 222d2c5

Please sign in to comment.