mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 00:29:39 +02:00
yarn dist generates minified css files
This commit is contained in:
@@ -23,12 +23,13 @@
|
|||||||
"lint": "node_modules/.bin/standard",
|
"lint": "node_modules/.bin/standard",
|
||||||
"karma": "node node_modules/karma/bin/karma start karma.conf.js --single-run",
|
"karma": "node node_modules/karma/bin/karma start karma.conf.js --single-run",
|
||||||
"tape": "node node_modules/tape/bin/tape test/cli_test-*.js",
|
"tape": "node node_modules/tape/bin/tape test/cli_test-*.js",
|
||||||
"pretest": "yarn run jison && yarn lint",
|
|
||||||
"test": "yarn run tape && yarn run karma",
|
"test": "yarn run tape && yarn run karma",
|
||||||
"live": "live-server ./test/examples",
|
"live": "live-server ./test/examples",
|
||||||
"jison": "gulp jison_legacy",
|
"jison": "gulp jison_legacy",
|
||||||
"old_watch": "source ./scripts/watch.sh",
|
"old_watch": "source ./scripts/watch.sh",
|
||||||
"doc": "rm -r build;rm -r dist/www;gulp vartree;cp dist/www/all.html ../mermaid-pages/index.html;cp dist/mermaid.js ../mermaid-pages/javascripts/lib;cp dist/mermaid.forest.css ../mermaid-pages/stylesheets"
|
"doc": "rm -r build;rm -r dist/www;gulp vartree;cp dist/www/all.html ../mermaid-pages/index.html;cp dist/mermaid.js ../mermaid-pages/javascripts/lib;cp dist/mermaid.forest.css ../mermaid-pages/stylesheets",
|
||||||
|
"pretest": "yarn jison && yarn lint",
|
||||||
|
"prepublish": "yarn build && yarn dist && yarn test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import { webConfig, nodeConfig } from './webpack.config.base.js'
|
import ExtractTextPlugin from 'extract-text-webpack-plugin'
|
||||||
|
import { webConfig, nodeConfig, lessConfig } from './webpack.config.base.js'
|
||||||
|
|
||||||
const config1 = webConfig()
|
const config1 = webConfig()
|
||||||
config1.output.filename = '[name].min.js'
|
config1.output.filename = '[name].min.js'
|
||||||
@@ -10,4 +11,8 @@ config2.output.filename = '[name].slim.min.js'
|
|||||||
const config3 = nodeConfig()
|
const config3 = nodeConfig()
|
||||||
config3.output.filename = '[name].min.js'
|
config3.output.filename = '[name].min.js'
|
||||||
|
|
||||||
export default [config1, config2, config3]
|
const config4 = lessConfig()
|
||||||
|
config4.output.filename = '[name].min.css'
|
||||||
|
config4.plugins = [ new ExtractTextPlugin('[name].min.css') ]
|
||||||
|
|
||||||
|
export default [config1, config2, config3, config4]
|
||||||
|
Reference in New Issue
Block a user