1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

require all templates for in-line html

This commit is contained in:
Kyle Spearrin
2017-11-07 16:59:21 -05:00
parent e43d4fe5c6
commit 44eedc8b1d
5 changed files with 44 additions and 41 deletions

View File

@@ -39,6 +39,16 @@ module.exports = {
publicPath: '/'
}
}]
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
use: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
useRelativePath: true
}
}]
}
]
},
@@ -76,13 +86,6 @@ module.exports = {
chunks: ['notification/bar']
}),
new CopyWebpackPlugin([
// Temporarily copy the whole app folder, can be removed once
// the templates uses template rather than using templateUrl.
{
context: 'src/popup/app',
from: '**/*.html',
to: 'popup/app'
},
'./src/manifest.json',
{ from: './src/_locales', to: '_locales' },
{ from: './src/edge', to: 'edge' },