vue-noty
Version:
An implementation of Noty2 in VueJS
31 lines (30 loc) • 792 B
JavaScript
/**
*
*/
var package = require("../package.json")
var webpack = require("webpack")
var moment = require("moment")
module.exports = {
context: __dirname + "/../src",
entry: "./index.js",
styleLoader: 'style-loader!css-loader',
module: {
loaders: [
{ test: /\.css$/, loader: "style-loader!css-loader" },
]
},
output: {
path: __dirname + "/../dist",
filename: "vue-noty.webpack.js",
library: "vueNoty",
libraryTarget: "umd"
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
noty: "noty",
}),
new webpack.BannerPlugin("vue-noty " + package.version + "\nbuild in " + moment().format("MMMM Do YYYY, HH:mm:ss"))
],
}