mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Make build faster
This commit is contained in:
parent
6fe62060c6
commit
f6b5c704e8
@ -27,7 +27,7 @@
|
|||||||
"live": "live-server ./test/examples",
|
"live": "live-server ./test/examples",
|
||||||
"jison": "gulp jison_legacy",
|
"jison": "gulp jison_legacy",
|
||||||
"live_server": "gulp live-server",
|
"live_server": "gulp live-server",
|
||||||
"prepublishOnly": "yarn release && yarn test"
|
"prepublishOnly": "yarn build && yarn release && yarn test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -26,6 +26,7 @@ export const webConfig = () => {
|
|||||||
rules: rules.concat([
|
rules: rules.concat([
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
use: {
|
use: {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
@ -63,6 +64,7 @@ export const nodeConfig = () => {
|
|||||||
rules: rules.concat([
|
rules: rules.concat([
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
use: {
|
use: {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user