6 Star 15 Fork 0

Gitee 极速下载 / markdown-plus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/tylingsoft/markdown-plus
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.config.js 964 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tyler Long 提交于 2017-06-02 19:52 . Support class diagram
import path from 'path'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
const rules = [
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: 'css-loader'
})
},
{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: [
[
'env',
{
'targets': {
'browsers': ['last 2 versions']
}
}
]
],
plugins: [
'transform-remove-strict-mode' // in order to make mermaid work
]
}
}
}
]
const config = {
target: 'web',
entry: {
'index': './src/index.js'
},
externals: 'fs', // in order to make mermaid work
output: {
path: path.join(__dirname, './dist/'),
filename: '[name].bundle.js'
},
module: { rules },
plugins: [
new ExtractTextPlugin('[name].bundle.css')
]
}
export default [config]
1
https://gitee.com/mirrors/markdown-plus.git
git@gitee.com:mirrors/markdown-plus.git
mirrors
markdown-plus
markdown-plus
master

搜索帮助