Commit 8489e6af authored by Evan You's avatar Evan You

use extractCSS option

parent b95b1de4
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const isProd = process.env.NODE_ENV === 'production'
module.exports = { module.exports = {
loaders: isProd ? { extractCSS: process.env.NODE_ENV === 'production',
stylus: ExtractTextPlugin.extract({
use: 'css-loader?minimize!stylus-loader',
fallback: 'vue-style-loader'
})
} : {},
preserveWhitespace: false, preserveWhitespace: false,
postcss: [ postcss: [
require('autoprefixer')({ require('autoprefixer')({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment