From 5ebed8d8c0e565fd5a217cb17feb0b870f9e92d3 Mon Sep 17 00:00:00 2001 From: Subramanya Chakravarthy Date: Fri, 1 Sep 2017 11:24:27 +0530 Subject: [PATCH 1/4] Update vue-loader link (#886) --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index dd31c1696f..0f139a4470 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # Introduction -This boilerplate is targeted towards large, serious projects and assumes you are somewhat familiar with Webpack and `vue-loader`. Make sure to also read [`vue-loader`'s documentation](http://vuejs.github.io/vue-loader/index.html) for common workflow recipes. +This boilerplate is targeted towards large, serious projects and assumes you are somewhat familiar with Webpack and `vue-loader`. Make sure to also read [`vue-loader`'s documentation](https://vue-loader.vuejs.org/) for common workflow recipes. If you just want to try out `vue-loader` or whip out a quick prototype, use the [webpack-simple](https://github.com/vuejs-templates/webpack-simple) template instead. From 313c5ade0c03531ff15d4c506bb3623843d80871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20L=C3=BCnborg?= Date: Tue, 5 Sep 2017 11:59:48 +0200 Subject: [PATCH 2/4] Merge some small fixes (#900) * Remove unused fs require from webpack.base.conf.js (#893) * cleanup some leftover from reverting #688 --- template/build/webpack.base.conf.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/template/build/webpack.base.conf.js b/template/build/webpack.base.conf.js index 39918abe20..8ed61a75ae 100644 --- a/template/build/webpack.base.conf.js +++ b/template/build/webpack.base.conf.js @@ -1,5 +1,4 @@ var path = require('path') -var fs = require('fs') var utils = require('./utils') var config = require('../config') var vueLoaderConfig = require('./vue-loader.conf') @@ -26,8 +25,7 @@ module.exports = { 'vue$': 'vue/dist/vue.esm.js', {{/if_eq}} '@': resolve('src'), - }, - symlinks: false + } }, module: { rules: [ From eb5464e73978201835280fe9011d88bfbb3c71a8 Mon Sep 17 00:00:00 2001 From: yibuyisheng Date: Thu, 31 Aug 2017 13:03:27 +0800 Subject: [PATCH 3/4] fix postcss config --- template/build/utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/template/build/utils.js b/template/build/utils.js index b1d54b4d6c..e15947b146 100644 --- a/template/build/utils.js +++ b/template/build/utils.js @@ -20,9 +20,13 @@ exports.cssLoaders = function (options) { } } + var postcssLoader = { + loader: 'postcss-loader' + } + // generate loader string to be used with extract text plugin function generateLoaders (loader, loaderOptions) { - var loaders = [cssLoader] + var loaders = options.usePostCSS !== false ? [cssLoader, postcssLoader] : [cssLoader] if (loader) { loaders.push({ loader: loader + '-loader', From cdea8fe0fd9aff5e0303cfecda3a362326e386d1 Mon Sep 17 00:00:00 2001 From: yibuyisheng Date: Sat, 30 Sep 2017 19:38:04 +0800 Subject: [PATCH 4/4] userPostCSS config --- template/build/webpack.dev.conf.js | 2 +- template/build/webpack.prod.conf.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/template/build/webpack.dev.conf.js b/template/build/webpack.dev.conf.js index 5470402d03..36b52d7485 100644 --- a/template/build/webpack.dev.conf.js +++ b/template/build/webpack.dev.conf.js @@ -13,7 +13,7 @@ Object.keys(baseWebpackConfig.entry).forEach(function (name) { module.exports = merge(baseWebpackConfig, { module: { - rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) + rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) }, // cheap-module-eval-source-map is faster for development devtool: '#cheap-module-eval-source-map', diff --git a/template/build/webpack.prod.conf.js b/template/build/webpack.prod.conf.js index e40a340c5d..4bd5275222 100644 --- a/template/build/webpack.prod.conf.js +++ b/template/build/webpack.prod.conf.js @@ -17,7 +17,8 @@ var webpackConfig = merge(baseWebpackConfig, { module: { rules: utils.styleLoaders({ sourceMap: config.build.productionSourceMap, - extract: true + extract: true, + usePostCSS: true }) }, devtool: config.build.productionSourceMap ? '#source-map' : false,