mirror of
https://github.com/falk-werner/webfuse-example
synced 2024-10-27 20:44:09 +00:00
30 lines
754 B
JavaScript
30 lines
754 B
JavaScript
const path = require('path');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
entry: './src/index.js',
|
|
output: {
|
|
filename: 'webfuse-example.js',
|
|
library: 'webfuse',
|
|
libraryTarget: 'umd',
|
|
path: path.resolve(__dirname, './dist')
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
title: "Webfuse Example",
|
|
filename: "index.html",
|
|
template: "./src/index.html"
|
|
}),
|
|
new CopyWebpackPlugin([
|
|
{ from: './src/style', to: 'style' }
|
|
])
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
webfuse: "webfuse/src/index.js"
|
|
}
|
|
}
|
|
};
|