2.5.26 • Published 2 years ago
@dumlj/crx-manifest-webpack-plugin v2.5.26
Crx Manifest Webpack Plugin
Automatically import files into the chrome extension's manifest.json.
BACKGROUND
Google Chrome Extension uses manifest.json to configure project. When we use webpack to build, the result file path is not consistent with the source, So we can use Entry to find all dependency files and add them to manifest.json.
FEATURE
- The files generated by optimization (runtime/chunk) will be imported into the
manifest.jsonautomatically. - Add configuration based on basic
manifest.json.
INSTALL
# use npm
$ npm install --dev @dumlj/crx-manifest-webpack-plugin
# use yarn
$ yarn add --dev @dumlj/crx-manifest-webpack-plugin
# use pnpm
$ pnpm add @dumlj/crx-manifest-webpack-plugin -DUSAGE
import fs from 'fs-extra'
import { CrxManifestWebpackPlugin } from '@dumlj/crx-manifest-webpack-plugin'
import webpack, { type Configuration } from 'webpack'
const manifest: ChromeManifest = fs.readJSONSync(manifestFile)
const config: Configuration = {
// ...
plugins: [new CrxManifestWebpackPlugin({ manifest })],
}
export default configLIVE DEMO
In the demo, the files is output to the memory, please check the console.
Or remove the comment writeToDisk: true from the MemfsWebpackPlugin in webpack.config.ts and run yarn build.
INTERNAL DEPENDENCIES
2.5.27-alpha.1713365667.0
2 years ago
2.5.26-alpha.1710126501.0
2 years ago
2.5.26
2 years ago
2.5.26-alpha.1709143224.0
2 years ago
2.5.26-alpha.1709136968.0
2 years ago
2.5.25-alpha.1709135426.0
2 years ago
2.5.25
2 years ago
2.5.23
2 years ago
2.5.24
2 years ago
2.5.23-alpha.1707383866.0
2 years ago
2.5.23-alpha.1707390213.0
2 years ago
2.5.23-alpha.1707401616.0
2 years ago
2.5.23-alpha.1707244387.0
2 years ago
2.5.23-alpha.1707282212.0
2 years ago
2.5.23-alpha.1707248747.0
2 years ago
2.5.23-alpha.1707245597.0
2 years ago
2.5.23-alpha.1707287569.0
2 years ago
2.5.23-alpha.1707212485.0
2 years ago
2.5.22
2 years ago
2.5.21
2 years ago
2.5.20
2 years ago
2.5.19
2 years ago
2.5.18
2 years ago