|
@@ -2,6 +2,8 @@ var Path = require('path');
|
|
var LiveReloadPlugin = require('webpack-livereload-plugin')
|
|
var LiveReloadPlugin = require('webpack-livereload-plugin')
|
|
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
|
|
|
|
|
|
+var prod = process.env.NODE_ENV === 'production'
|
|
|
|
+
|
|
module.exports = {
|
|
module.exports = {
|
|
entry: Path.resolve('src/index.js'),
|
|
entry: Path.resolve('src/index.js'),
|
|
output: {
|
|
output: {
|
|
@@ -25,7 +27,7 @@ module.exports = {
|
|
test: /\.vue$/,
|
|
test: /\.vue$/,
|
|
loader: 'vue-loader',
|
|
loader: 'vue-loader',
|
|
options: {
|
|
options: {
|
|
- extractCSS: true
|
|
|
|
|
|
+ extractCSS: prod
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|