Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
wext-manifest-webpack-plugin
Advanced tools
Webpack plugin to solve the problem of generating js file for manifest.json entry
Webpack plugin to solve the problem of generating js file for manifest.json entry
❤️ it? ⭐️ it on GitHub or Tweet about it.
It just find js files from manifest entry and remove the js file from the compilation.
Checkout web-extension-starter that uses this plugin
# npm
npm install --save-dev wext-manifest-webpack-plugin
# yarn
yarn add wext-manifest-webpack-plugin --dev
// ... other plugins
const WextManifestWebpackPlugin = require("wext-manifest-webpack-plugin");
module.exports = {
entry: {
manifest: './source/manifest.json',
// ...
},
output: {
path: path.join(destPath, targetBrowser),
filename: 'js/[name].js',
},
module: {
rules: [
{
type: 'javascript/auto', // prevent webpack handling json with its own loaders,
test: /manifest\.json$/,
use: 'wext-manifest-loader',
exclude: /node_modules/,
},
]
},
plugins: [
new WextManifestWebpackPlugin(),
// ...
],
};
Looking to contribute? Look for the Good First Issue label.
Please file an issue here for bugs, missing documentation, or unexpected behavior.
@abhijithvijayan/eslint-config
@abhijithvijayan/tsconfig
MIT © Abhijith Vijayan
FAQs
Webpack plugin to solve the problem of generating js file for manifest.json entry
The npm package wext-manifest-webpack-plugin receives a total of 944 weekly downloads. As such, wext-manifest-webpack-plugin popularity was classified as not popular.
We found that wext-manifest-webpack-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.