You might want to check the CopyWebpackPlugin if you have no need to process/parse the files, but only to copy them to your dist
folder.
Copy Webpack Plugin
Copies individual files or entire directories to the build directory
Install
npm i -D copy-webpack-plugin
Usage
webpack.config.js
const CopyWebpackPlugin = require('copy-webpack-plugin') const config = { plugins: [ new CopyWebpackPlugin([ ...patterns ], options) ] }
Patterns
A simple pattern looks like this
{ from: 'source', to: 'dest' }
I have an array with objects of unknown depth, like this var objects = [{ id: 1, name: 'foo' }, { id: 2, name: 'bar', childs: [{ id: 3, name: 'baz', childs:...
I have an array with objects of unknown depth, like this var objects = [{ id: 1, name: 'foo' }, { id: 2, name: 'bar', childs: [{ id: 3, name: 'baz', childs:...
I am a learner in java script currently I am going through the regular expression for validating the password field, I want my password field to contain characters and only one number in any place of ...
I am a learner in java script currently I am going through the regular expression for validating the password field, I want my password field to contain characters and only one number in any place of ...
Please have a look of the following code snippet, I have a method someFunc of the Javascript class someClass Inside the onclick handler of the btn variable inside the method definition, I want to ...
Please have a look of the following code snippet, I have a method someFunc of the Javascript class someClass Inside the onclick handler of the btn variable inside the method definition, I want to ...
this is my html <div> <h1 class="main-header logic-head av-settings-head"></h1> <div class="col-xs-12 col-xs-12 col-lg-12 tabcontent" > <form class="form-horizontal ...
this is my html <div> <h1 class="main-header logic-head av-settings-head"></h1> <div class="col-xs-12 col-xs-12 col-lg-12 tabcontent" > <form class="form-horizontal ...