Copy static dir during build
This commit is contained in:
parent
b5a7e17ee0
commit
dbc84964b6
|
|
@ -64,6 +64,13 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
|||
to: config.dev.assetsSubDirectory,
|
||||
ignore: ['.*']
|
||||
}
|
||||
]),
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: path.resolve(__dirname, '../static'),
|
||||
to: config.build.djangoAssetsSubDirectory,
|
||||
ignore: ['.*']
|
||||
}
|
||||
])
|
||||
]
|
||||
})
|
||||
|
|
|
|||
|
|
@ -115,6 +115,13 @@ const webpackConfig = merge(baseWebpackConfig, {
|
|||
to: config.build.assetsSubDirectory,
|
||||
ignore: ['.*']
|
||||
}
|
||||
]),
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: path.resolve(__dirname, '../static'),
|
||||
to: config.build.djangoAssetsSubDirectory,
|
||||
ignore: ['.*']
|
||||
}
|
||||
])
|
||||
]
|
||||
})
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ module.exports = {
|
|||
index: path.resolve(__dirname, '../dist/index.html'),
|
||||
assetsRoot: path.resolve(__dirname, '../dist'),
|
||||
|
||||
djangoAssetsSubDirectory: 'vstatic',
|
||||
assetsSubDirectory: 'vstatic',
|
||||
assetsPublicPath: '/',
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue