File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 11var vue = require ( 'vue-loader' )
22var path = require ( 'path' )
3+ var config = require ( '../config' )
4+ var utils = require ( './utils' )
35var webpack = require ( "webpack" )
46var ExtractTextPlugin = require ( "extract-text-webpack-plugin" )
57var projectRoot = path . resolve ( __dirname , '../' )
6- var cssLoader = ExtractTextPlugin . extract ( 'style-loader' , 'css-loader' )
8+ // var cssLoader = ExtractTextPlugin.extract('style-loader', 'css-loader')
79
810module . exports = {
911 entry : {
@@ -38,20 +40,17 @@ module.exports = {
3840 test : / \. j s $ / ,
3941 exclude : / n o d e _ m o d u l e s / ,
4042 loader : 'babel'
41- } ,
42- {
43- test : / \. c s s $ / ,
44- loader : cssLoader
45- } ,
46- {
47- test : / \. s [ a | c ] s s $ / ,
48- loader : ExtractTextPlugin . extract ( 'style-loader' , 'css-loader!sass-loader' )
4943 }
5044 ]
5145 } ,
5246 eslint : {
5347 formatter : require ( 'eslint-friendly-formatter' )
5448 } ,
49+ vue : {
50+ loaders : utils . cssLoaders ( {
51+ sourceMap : config . build . productionSourceMap
52+ } )
53+ } ,
5554 babel : {
5655 presets : [ 'es2015' ] ,
5756 plugins : [ 'transform-runtime' ]
@@ -73,6 +72,6 @@ if (process.env.NODE_ENV === 'production') {
7372 }
7473 } ) ,
7574 new webpack . optimize . OccurenceOrderPlugin ( )
76- // new ExtractTextPlugin('build. css')
75+ // new ExtractTextPlugin(utils.assetsPath('css/[name].[contenthash]. css')),
7776 ]
7877}
You can’t perform that action at this time.
0 commit comments