UNPKG

sharemydisk

Version:

Host your local disk in you LAN / WAN.so that any one can access your harddisk over the network by using the web browser like indexing

25 lines (22 loc) 572 B
import * as path from 'path'; import CopyWebpackPlugin from 'copy-webpack-plugin'; module.exports = { target: "node", mode: "production", entry: "./dist/index.js", output: { filename: "app.js", path: path.resolve(__dirname, "shareMe"), }, plugins: [ // Copy static files from serve-index/public to shareMe/public new CopyWebpackPlugin({ patterns: [ { from: path.resolve(__dirname, "node_modules", "serve-index", "public"), to: path.resolve(__dirname, "shareMe", "public"), } ], }), ], };