Skip to content

Commit

Permalink
fix: You may need an appropriate loader to handle this file type for …
Browse files Browse the repository at this point in the history
…json-typescript-mapper
  • Loading branch information
sky committed Jun 24, 2020
1 parent de4f63f commit 4c162dd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/config.local.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EggAppConfig } from 'egg';
import * as path from 'path';
import { getWebpackConfig } from 'easywebpack-vue';
import { getWebpackConfig } from '@easy-team/easywebpack-vue';

export default (appInfo: EggAppConfig) => {
const exports: any = {};
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "egg-vue-typescript-boilerplate",
"version": "4.0.2",
"version": "4.0.3",
"description": "Egg + Vue + TypeScript Server Side Render(SSR) 服务端渲染骨架项目",
"scripts": {
"start": "egg-scripts start --port 7001 --workers 4",
"backend": "nohup egg-scripts start --port 7001 --workers 4 &",
"dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug -r egg-ts-helper/register",
"build": "easy build",
"build": "npm run tsc && easy build",
"tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean",
"kill": "easy kill",
Expand All @@ -17,7 +17,7 @@
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"dependencies": {
"@hubcarl/json-typescript-mapper": "2.0.0",
"@hubcarl/json-typescript-mapper": "^2.0.0",
"axios": "^0.18.1",
"egg": "^2.3.0",
"egg-cors": "^2.1.1",
Expand Down Expand Up @@ -49,11 +49,12 @@
"@types/node": "^10.12.0",
"@types/shortid": "^0.0.29",
"cz-conventional-changelog": "^2.1.0",
"easywebpack-cli": "^4.1.0",
"easywebpack-vue": "^4.2.1",
"@easy-team/easywebpack-cli": "^4.0.0",
"@easy-team/easywebpack-vue": "^4.0.0",
"egg-bin": "^4.9.0",
"egg-scripts": "^2.10.0",
"egg-ts-helper": "^1.13.0",
"imagemin-webpack-plugin": "^2.4.2",
"node-tool-utils": "^1.1.1",
"ts-loader": "^5.3.0",
"ts-node": "^7.0.1",
Expand Down
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ module.exports = {
module:{
rules:[
{ babel: false },
{ typescript: true }
{
ts: {
exclude: []
}
}
]
},
plugins: [
Expand Down

0 comments on commit 4c162dd

Please sign in to comment.