static files for state container added to copy webpack plugin config

This commit is contained in:
NikolaBorislavovHristov 2019-04-15 18:29:09 +03:00
parent ed7b039f2c
commit f71680268f

View file

@ -16,8 +16,7 @@ module.exports = {
test: /\.js$/,
include: [
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'node_modules/stremio-icons/dom'),
path.resolve(__dirname, 'node_modules/stremio-state-container-web')
path.resolve(__dirname, 'node_modules/stremio-icons/dom')
],
use: {
loader: 'babel-loader',
@ -107,6 +106,7 @@ module.exports = {
inject: false
}),
new CopyWebpackPlugin([
{ from: 'node_modules/stremio-state-container-web/static', to: '' },
{ from: 'images', to: 'images' },
{ from: 'fonts', to: 'fonts' }
])