Skip to content

Commit 4c162dd

Browse files
author
sky
committed
fix: You may need an appropriate loader to handle this file type for json-typescript-mapper
1 parent de4f63f commit 4c162dd

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

config/config.local.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EggAppConfig } from 'egg';
22
import * as path from 'path';
3-
import { getWebpackConfig } from 'easywebpack-vue';
3+
import { getWebpackConfig } from '@easy-team/easywebpack-vue';
44

55
export default (appInfo: EggAppConfig) => {
66
const exports: any = {};

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "egg-vue-typescript-boilerplate",
3-
"version": "4.0.2",
3+
"version": "4.0.3",
44
"description": "Egg + Vue + TypeScript Server Side Render(SSR) 服务端渲染骨架项目",
55
"scripts": {
66
"start": "egg-scripts start --port 7001 --workers 4",
77
"backend": "nohup egg-scripts start --port 7001 --workers 4 &",
88
"dev": "egg-bin dev -r egg-ts-helper/register",
99
"debug": "egg-bin debug -r egg-ts-helper/register",
10-
"build": "easy build",
10+
"build": "npm run tsc && easy build",
1111
"tsc": "ets && tsc -p tsconfig.json",
1212
"clean": "ets clean",
1313
"kill": "easy kill",
@@ -17,7 +17,7 @@
1717
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
1818
},
1919
"dependencies": {
20-
"@hubcarl/json-typescript-mapper": "2.0.0",
20+
"@hubcarl/json-typescript-mapper": "^2.0.0",
2121
"axios": "^0.18.1",
2222
"egg": "^2.3.0",
2323
"egg-cors": "^2.1.1",
@@ -49,11 +49,12 @@
4949
"@types/node": "^10.12.0",
5050
"@types/shortid": "^0.0.29",
5151
"cz-conventional-changelog": "^2.1.0",
52-
"easywebpack-cli": "^4.1.0",
53-
"easywebpack-vue": "^4.2.1",
52+
"@easy-team/easywebpack-cli": "^4.0.0",
53+
"@easy-team/easywebpack-vue": "^4.0.0",
5454
"egg-bin": "^4.9.0",
5555
"egg-scripts": "^2.10.0",
5656
"egg-ts-helper": "^1.13.0",
57+
"imagemin-webpack-plugin": "^2.4.2",
5758
"node-tool-utils": "^1.1.1",
5859
"ts-loader": "^5.3.0",
5960
"ts-node": "^7.0.1",

webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ module.exports = {
1919
module:{
2020
rules:[
2121
{ babel: false },
22-
{ typescript: true }
22+
{
23+
ts: {
24+
exclude: []
25+
}
26+
}
2327
]
2428
},
2529
plugins: [

0 commit comments

Comments
 (0)