mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
12 lines
390 B
JavaScript
12 lines
390 B
JavaScript
import ExtractTextPlugin from 'extract-text-webpack-plugin'
|
|
import { jsConfig, lessConfig } from './webpack.config.base.js'
|
|
|
|
const minConfig = jsConfig()
|
|
minConfig.output.filename = '[name].min.js'
|
|
|
|
const cssMinConfig = lessConfig()
|
|
cssMinConfig.output.filename = '[name].min.css'
|
|
cssMinConfig.plugins = [ new ExtractTextPlugin('[name].min.css') ]
|
|
|
|
export default [minConfig, cssMinConfig]
|