1 Star 0 Fork 57

潘老师/vue-html5-editor

forked from JFinal/vue-html5-editor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
peak 提交于 2016-08-19 21:02 . refactor
var path = require("path")
var package = require("./package.json")
var webpack = require("webpack")
module.exports = {
context: __dirname + "/src",
entry: "./index.js",
output: {
path: __dirname + "/dist",
filename: "vue-html5-editor.js",
libraryTarget: "umd",
library: "VueHtml5Editor"
},
module: {
loaders: [
{test: /\.css$/, loader: "style-loader!css-loader"},
{test: /(\.html)$/, loader: "html-loader"},
{test: /\.(jpg)|(png)|(gif)$/, loader: "url-loader"},
{test: /\.vue$/, loader: "vue-loader"},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}
]
},
plugins: [
new webpack.BannerPlugin("Vue-html5-editor " + package.version + "\nhttps://github.com/PeakTai/vue-html5-editor"),
new webpack.DefinePlugin({
ROOT: JSON.stringify(path.normalize(__dirname)),
}),
new webpack.DefinePlugin({
VERSION: JSON.stringify(package.version),
})
],
debug: false,
babel: {
presets: ['es2015'],
plugins: ['transform-runtime']
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/oneeyex/vue-html5-editor.git
git@gitee.com:oneeyex/vue-html5-editor.git
oneeyex
vue-html5-editor
vue-html5-editor
master

搜索帮助