UNPKG

nodebb-plugin-ns-embed

Version:

Embed media and rich content in posts: youtube, vimeo, twitch etc. All embeds are based on the rules. You are encouraged to build your own rules to embed everything what is embeddable.

29 lines (27 loc) 813 B
const path = require('path'); module.exports = env => { return { entry : "./index.js", mode : env.production === true ? 'production' : 'development', module: { rules: [ { test: /\.jsx?$/, use : { loader : 'babel-loader', options: { exclude: /node_modules/, presets: ['@babel/preset-react'] } } } ] }, output: { path : path.resolve(__dirname, '../../public/js'), filename : "acp.js", libraryTarget: "amd", library : "admin/plugins/embed" }, }; };