Answer the question
In order to leave comments, you need to log in
Why is CopyWebpackPlugin transferring files not to the dist/ root?
Good afternoon, I'm setting up webpack, I need to transfer all php files from src to dist using CopyWebpackPlugin.
I have this code
const PATHS = {
src: path.join(__dirname, "../src"),
dist: path.join(__dirname, "../dist"),
assets: "assets/"
};
new CopyWebpackPlugin([
{ from: `${PATHS.src}/img`, to: `${PATHS.assets}img` },
{ from: `${PATHS.src}/**/*.php`, to: `${PATHS.dist}` }
])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question