mirror of
https://github.com/codex-team/editor.js
synced 2024-05-06 08:33:20 +02:00
Add build tsconfig for automatic deployments (#1784)
This commit is contained in:
parent
70a736bffa
commit
1433c1a7dc
4
tsconfig.build.json
Normal file
4
tsconfig.build.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"exclude": ["test"]
|
||||||
|
}
|
|
@ -12,6 +12,7 @@ module.exports = (env, argv) => {
|
||||||
const { LicenseWebpackPlugin } = require('license-webpack-plugin');
|
const { LicenseWebpackPlugin } = require('license-webpack-plugin');
|
||||||
const pkg = require('./package.json');
|
const pkg = require('./package.json');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Environment
|
* Environment
|
||||||
*
|
*
|
||||||
|
@ -78,6 +79,9 @@ module.exports = (env, argv) => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
loader: 'ts-loader',
|
loader: 'ts-loader',
|
||||||
|
options: {
|
||||||
|
configFile: NODE_ENV === 'production' ? 'tsconfig.build.json' : 'tsconfig.json',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue