![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
concat-text-webpack-plugin
Advanced tools
The ConcatTextPlugin extracts and concatenates text files from a specified glob path into a single file.
new ConcatTextPlugin({
files: "res/**/*.properties",
name: "values.properties",
outputPath: "cache/",
})
The above configuration will look for .properties
files under the res/
folder (relative to the Webpack config file location) and concatenate them into a single file named values.properties
under the cache/
directory, which is relative to the Webpack output path.
files
(string)The glob string to get the list of files that should be concatenated.
name
(string, default: same as Webpack output.filename
)The name of the output file. If it is not specified, the output.filename
and the files
glob string file extension will be used as name. If the glob string doesn't have an extension, the name won't have one either:
module.exports = {
output: {
path: "dist/",
filename: "app.js"
},
plugins: [
new ConcatTextPlugin({
files: "res/**/*",
})
]
}
The example above will generate a concatenated file dist/app
(without a file extension) containing everything under res/
. The output file won't have a file extension as well if the files
glob string matches multiple file types:
module.exports = {
output: {
path: "dist/",
filename: "app.js"
},
plugins: [
new ConcatTextPlugin({
files: "res/**/*.{txt,properties}",
})
]
}
Some other examples would be *.js?(x)
or *.+(md|markdown)
. Basically, if the file extension is not exact, the output file won't have one.
outputPath
(string, default: same as Webpack output.path
)Specify where the concatenated file should be placed, relative to the Webpack output path. You might also set it to an absolute path.
There are some basic snapshot tests to assert the output of the loader.
npm test
FAQs
Concatenate and extract text files.
The npm package concat-text-webpack-plugin receives a total of 4,722 weekly downloads. As such, concat-text-webpack-plugin popularity was classified as popular.
We found that concat-text-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.