Skip to content

Commit

Permalink
adjusted webpack options, updated userscript headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Venipa committed Jan 9, 2022
1 parent 55fbcca commit 5765c9a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
16 changes: 16 additions & 0 deletions CoubDownload-Bridge-Userscript/dist/coub-bridge.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions CoubDownload-Bridge-Userscript/src/banner.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ==UserScript==
// @name {{name}}
// @namespace {{repository}}
// @copyright 2021, {{name}} ({{repository}})
// @version {{version}}
// @description {{description}}
// @author {{author}}
Expand Down
12 changes: 2 additions & 10 deletions CoubDownload-Bridge-Userscript/webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ mix.before(() => {
});
mix.setPublicPath("dist");
mix.webpackConfig({
optimization: {
minimize: !isDev,
minimizer: [
new UglifyJsPlugin({
exclude: /\/excludes/,
}),
]
},
plugins: [
new DefinePlugin({
COUB_DL_CONTEXT: JSON.stringify({
Expand All @@ -64,7 +56,7 @@ mix.webpackConfig({
}),
new BannerPlugin({
banner: () => bannerContent,
raw: true,
raw: true
}),
],
});
Expand All @@ -75,7 +67,7 @@ mix.options({
filename: ({ filename }) => {
return filename;
},
banner: () => bannerContent,
banner: bannerContent,
},
},
});
Expand Down

0 comments on commit 5765c9a

Please sign in to comment.