ko 5.3.7 → 5.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
6
7
|
const mini_css_extract_plugin_1 = require("mini-css-extract-plugin");
|
|
7
8
|
const autoprefixer_1 = __importDefault(require("autoprefixer"));
|
|
8
9
|
const CSS_LOADER = require.resolve('css-loader');
|
|
@@ -49,6 +50,7 @@ const styleLoaders = [
|
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
52
|
test: /\.less$/,
|
|
53
|
+
exclude: [path_1.default.join(process.cwd(), 'node_modules/antd-v4')],
|
|
52
54
|
use: [
|
|
53
55
|
styleLoader,
|
|
54
56
|
cssLoader,
|
package/package.json
CHANGED
package/lib/utils/config.test.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const config_1 = __importDefault(require("./config"));
|
|
7
|
-
console.log(typeof config_1.default.getFileRealPath);
|
|
8
|
-
describe('config instance', () => {
|
|
9
|
-
it('getFileRealPath should return absolute path', () => {
|
|
10
|
-
const absolutePath = '/foo/bar';
|
|
11
|
-
expect(config_1.default.getFileRealPath(absolutePath)).toBe(absolutePath);
|
|
12
|
-
const relativePath = 'ko.config.js';
|
|
13
|
-
expect(config_1.default.getFileRealPath(relativePath)).toBe(process.cwd() + '/' + relativePath);
|
|
14
|
-
});
|
|
15
|
-
it('userConf should throw', () => {
|
|
16
|
-
expect(() => {
|
|
17
|
-
config_1.default.userConf;
|
|
18
|
-
}).toThrow();
|
|
19
|
-
});
|
|
20
|
-
it('defaultPaths should ', () => {
|
|
21
|
-
const cwd = process.cwd();
|
|
22
|
-
expect(config_1.default.defaultPaths).toEqual({
|
|
23
|
-
src: cwd + '/src',
|
|
24
|
-
dist: cwd + '/dist',
|
|
25
|
-
public: cwd + '/public',
|
|
26
|
-
html: cwd + '/public/index.html',
|
|
27
|
-
tsconfig: cwd + '/tsconfig.json',
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
});
|