Skip to content

Commit e932b58

Browse files
author
Lionel Bijaoui
committed
Remove config file
1 parent 632911e commit e932b58

File tree

4 files changed

+1
-45
lines changed

4 files changed

+1
-45
lines changed

build/utils.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
let path = require("path");
2-
let config = require("../config");
32
let 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-
114
exports.cssLoaders = function(options) {
125
options = options || {};
136

build/vue-loader.conf.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
let utils = require("./utils");
2-
let config = require("../config");
32
let isProduction = process.env.NODE_ENV === "production";
43

54
module.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
};

build/webpack.dev.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const path = require("path");
22
const webpack = require("webpack");
33
const projectRoot = path.resolve(__dirname, "../");
44
const vueLoaderConfig = require("./vue-loader.conf");
5-
const config = require("../config");
65

76
let rules = [
87
{

config/index.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)