uk-dnd
Version:
It is a uikit drag and drop component for vue.
42 lines (40 loc) • 988 B
JavaScript
const webpack = require("webpack");
const path = require("path");
const CleanWebpackPlugin = require("clean-webpack-plugin");
module.exports = {
entry: "./src/index.js",
output: {
path: path.join(__dirname, "dist"),
filename: "build.js",
library: "uk-dnd",
libraryTarget: "umd",
umdNamedDefine: true
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: "babel-loader"
},
{
test: /\.vue$/,
use: "vue-loader"
}
]
},
plugins: [
new CleanWebpackPlugin(["dist"]),
new webpack.DefinePlugin({
"process.env": {
NODE_ENV: '"production"'
}
}),
new webpack.optimize.UglifyJsPlugin({
comments: false,
compress: {
warnings: false
}
})
]
};