Skip to content

Instantly share code, notes, and snippets.

@jakeboud
jakeboud / copyWebpackPlugin.md
Created August 16, 2018 11:12
CopyWebpackPlugin
new CopyWebpackPlugin([
  { from: "kendo" },
  { from: "Material", to: "Material" }
]),
@jakeboud
jakeboud / HtmlWebpackIncludeAssetsPlugin.md
Last active August 16, 2018 11:11
HtmlWebpackIncludeAssetsPlugin
new HtmlWebpackIncludeAssetsPlugin({
  assets: ["kendo.js", "kendo.css"],
  append: false
}),
@jakeboud
jakeboud / Copying files using Webpack Blog main.md
Last active August 16, 2018 11:05
Copying files using Webpack Blog

Sometimes in the world of web development you have to work around some funny deployment issues and do things a bit manually.

An issue I recently encountered was trying to copy a single file into the build folder when using webpack to build and run the non-local environment.

After a quick Google (every developers first port of call) I found CopyWebpackPlugin which allows you to copy a single file into the build directory rather than bundling it.

new CopyWebpackPlugin([
  { from: "kendo" },
 { from: "Material", to: "Material" }