library_components/webpack.config.js

39 lines
676 B
JavaScript
Raw Permalink Normal View History

2024-07-08 07:34:20 +00:00
const webpack = require("webpack");
module.exports = {
entry: "./src/index.js",
output: {
path: "./dist/",
filename: "index.js",
library: "VuejsPaginate",
libraryTarget: "umd",
},
resolve: {
extensions: ["", ".js", ".vue"],
},
module: {
loaders: [
{
test: /\.vue$/,
loader: "vue",
},
{
test: /\.js$/,
loader: "babel",
include: __dirname,
exclude: /node_modules/,
},
],
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
minimize: true,
sourceMap: false,
mangle: true,
compress: {
warnings: false,
},
}),
],
};