diff --git a/library.html b/library.html new file mode 100755 index 00000000..cc5cc280 --- /dev/null +++ b/library.html @@ -0,0 +1,27 @@ + + + +
+ + + + + + + + + + \ No newline at end of file diff --git a/webpack.library.config.js b/webpack.library.config.js new file mode 100644 index 00000000..5b6c29c3 --- /dev/null +++ b/webpack.library.config.js @@ -0,0 +1,39 @@ +const path = require("path"); + +module.exports = { + module: { + rules: [ + { + test: /\.css$/, + use: ["style-loader", "css-loader"] + }, + { + test: /\.js$/, + exclude: /(node_modules)/, + use: { + loader: "babel-loader" + } + }, + { + test: /\.(wsz|mp3)$/, + use: [ + { + loader: "file-loader", + options: { + emitFile: true, + name: "[path][name]-[hash].[ext]" + } + } + ] + } + ], + noParse: [/jszip\.js$/] + }, + entry: ["babel-polyfill", "./js/winamp.js"], + output: { + path: path.resolve(__dirname, "built"), + filename: "winamp.bundle.js", + library: "winamp2js", + libraryTarget: "umd" + } +};