mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +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 pkg = require('./package.json');
|
||||
|
||||
|
||||
/**
|
||||
* Environment
|
||||
*
|
||||
|
@ -78,6 +79,9 @@ module.exports = (env, argv) => {
|
|||
},
|
||||
{
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
configFile: NODE_ENV === 'production' ? 'tsconfig.build.json' : 'tsconfig.json',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue