mirror of
https://github.com/codex-team/editor.js
synced 2024-06-13 11:22:25 +02:00
Update prod build (#572)
* Remove watch from prod build
* x -> X
* bump version for CI
* Revert "bump version for CI"
This reverts commit 2c9d24d82c
.
This commit is contained in:
parent
8e5a56a67a
commit
f9d65d9544
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"name": "codex.editor",
|
||||
"version": "2.7.12",
|
||||
"description": "Codex Editor. Native JS, based on API and Open Source",
|
||||
"description": "CodeX Editor. Native JS, based on API and Open Source",
|
||||
"main": "dist/codex-editor.js",
|
||||
"types": "./types/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "rimraf dist/* && yarn svg && yarn build:prod",
|
||||
"build:win": "rimraf dist && yarn svg:win && yarn build:prod",
|
||||
"build:dev": "webpack --mode development --progress --display-error-details --display-entrypoints",
|
||||
"build:prod": "webpack --mode production --progress --display-error-details --display-entrypoints",
|
||||
"build:dev": "webpack --mode development --progress --display-error-details --display-entrypoints --watch",
|
||||
"build:prod": "webpack --mode production",
|
||||
"svg:win": "if not exist dist md dist && yarn svg",
|
||||
"svg": "svg-sprite-generate -d src/assets/ -o dist/sprite.svg",
|
||||
"pull_tools": "git submodule update --init --recursive"
|
||||
|
|
|
@ -29,6 +29,7 @@ module.exports = (env, argv) => {
|
|||
entry: {
|
||||
'codex-editor': ['@babel/polyfill/noConflict', './src/codex.ts']
|
||||
},
|
||||
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: '[name].js',
|
||||
|
@ -36,7 +37,6 @@ module.exports = (env, argv) => {
|
|||
libraryTarget: 'umd'
|
||||
},
|
||||
|
||||
watch: true,
|
||||
watchOptions: {
|
||||
aggregateTimeout: 50
|
||||
},
|
||||
|
@ -50,7 +50,6 @@ module.exports = (env, argv) => {
|
|||
},
|
||||
|
||||
plugins: [
|
||||
|
||||
/** Pass variables into modules */
|
||||
new webpack.DefinePlugin({
|
||||
NODE_ENV: JSON.stringify(NODE_ENV),
|
||||
|
|
Loading…
Reference in a new issue