-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Want to have files in root #657
Comments
Fixed it myself by adding a directory new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
},
{
from: path.resolve(__dirname, '../root'),
to: config.build.assetsRoot,
ignore: ['.*']
}
]) |
For me the above solution from @visualcookie didn't work, getting this error:
instead I had to move the CopyWebpackPlugin config into a new file
See these docs: https://cli.vuejs.org/guide/webpack.html#simple-configuration |
@askmike Thanks for the response. It did work, but my post is from last year, so yeah... version has changed and such. |
I know, I was just commenting my findings for future readers. Took me an
hour to figure out, so maybe I can save the next person that time (until it
changes again).
…On Wed, 11 Jul 2018, 08:00 Dean Hidri, ***@***.***> wrote:
@askmike <https://github.com/askmike> Thanks for the response. It did
work, but my post is from last year, so yeah... version has changed and
such.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#657 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7MD10DD-oPcGzdgQzCAzvLVX8xqOe6ks5uFUAWgaJpZM4M1sp5>
.
|
@askmike Extending the existing {
from: path.resolve(__dirname, '../root'),
to: config.build.assetsRoot
} worked for me. new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
},
{
from: path.resolve(__dirname, '../root'),
to: config.build.assetsRoot
}
]), VueJS ^2.5.2 |
Hi,
I currently have a lot of files, which are normally meant to be in the ROOT directory of the project, inside the static directory. Now I literally have no idea, how to get these files to be in the ROOT directory, when the project is going to get builded.
Any1 got a solution for me?
The text was updated successfully, but these errors were encountered: