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 1
1
let path = require ( "path" ) ;
2
- let config = require ( "../config" ) ;
3
2
let ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
4
3
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
-
11
4
exports . cssLoaders = function ( options ) {
12
5
options = options || { } ;
13
6
Original file line number Diff line number Diff line change 1
1
let utils = require ( "./utils" ) ;
2
- let config = require ( "../config" ) ;
3
2
let isProduction = process . env . NODE_ENV === "production" ;
4
3
5
4
module . exports = {
6
5
esModule : false ,
7
6
loaders : utils . cssLoaders ( {
8
- sourceMap : isProduction ? config . build . productionSourceMap : config . dev . cssSourceMap ,
7
+ sourceMap : false ,
9
8
extract : isProduction
10
9
} )
11
10
} ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ const path = require("path");
2
2
const webpack = require ( "webpack" ) ;
3
3
const projectRoot = path . resolve ( __dirname , "../" ) ;
4
4
const vueLoaderConfig = require ( "./vue-loader.conf" ) ;
5
- const config = require ( "../config" ) ;
6
5
7
6
let rules = [
8
7
{
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments