UNPKG

object-detection

Version:

Detect single objects in small, background-blurred and close-focused images

47 lines (45 loc) 1.02 kB
var ExtractTextPlugin = require("extract-text-webpack-plugin"); var HtmlWebpackPlugin = require("html-webpack-plugin"); var HtmlWebpackExcludeAssetsPlugin = require("html-webpack-exclude-assets-plugin"); const template = "./template.html"; const scripts = "./script.js"; const styles = "./style.css"; const outputPath = __dirname + "/examples/public"; module.exports = { entry: { scripts: scripts, styles: styles }, output: { path: outputPath, filename: "[name].min.js" }, module: { rules: [ { test: /\.css$/, use: ExtractTextPlugin.extract([ { loader: "css-loader", options: { minimize: true } } ]) } ] }, plugins: [ new ExtractTextPlugin("[name].min.css"), new HtmlWebpackPlugin({ hash: true, template: template, excludeAssets: [/styles.*js/] }), new HtmlWebpackExcludeAssetsPlugin() ], devServer: { inline: true, open: true } };