File tree Expand file tree Collapse file tree 4 files changed +1
-45
lines changed Expand file tree Collapse file tree 4 files changed +1
-45
lines changed Original file line number Diff line number Diff line change 11let path = require ( "path" ) ;
2- let config = require ( "../config" ) ;
32let ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
43
5- exports . assetsPath = function ( _path ) {
6- let assetsSubDirectory =
7- process . env . NODE_ENV === "production" ? config . build . assetsSubDirectory : config . dev . assetsSubDirectory ;
8- return path . posix . join ( assetsSubDirectory , _path ) ;
9- } ;
10-
114exports . cssLoaders = function ( options ) {
125 options = options || { } ;
136
Original file line number Diff line number Diff line change 11let utils = require ( "./utils" ) ;
2- let config = require ( "../config" ) ;
32let isProduction = process . env . NODE_ENV === "production" ;
43
54module . exports = {
65 esModule : false ,
76 loaders : utils . cssLoaders ( {
8- sourceMap : isProduction ? config . build . productionSourceMap : config . dev . cssSourceMap ,
7+ sourceMap : false ,
98 extract : isProduction
109 } )
1110} ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ const path = require("path");
22const webpack = require ( "webpack" ) ;
33const projectRoot = path . resolve ( __dirname , "../" ) ;
44const vueLoaderConfig = require ( "./vue-loader.conf" ) ;
5- const config = require ( "../config" ) ;
65
76let rules = [
87 {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments