summaryrefslogtreecommitdiff
path: root/ui/webpack.config.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-04-24 00:53:41 -0700
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-24 11:12:26 +0200
commit9d301349ab434dc744546918fe026d50485a0797 (patch)
tree802bec24bb446c9ed3af11f7ccfcd9793250b070 /ui/webpack.config.js
parent2976cf11e451f1086d98eae20bdfb0fffa87abb0 (diff)
[feat] usable vpn ui
Diffstat (limited to 'ui/webpack.config.js')
-rw-r--r--ui/webpack.config.js28
1 files changed, 24 insertions, 4 deletions
diff --git a/ui/webpack.config.js b/ui/webpack.config.js
index 786addd..1f96902 100644
--- a/ui/webpack.config.js
+++ b/ui/webpack.config.js
@@ -31,6 +31,30 @@ var config = {
{
test: /\.less$/,
loader: "style!css!less?noIeCompat"
+ },
+ {
+ test: /\.png$/,
+ loader: "file-loader"
+ },
+ {
+ test: /\.jpg$/,
+ loader: "file-loader"
+ },
+ {
+ test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
+ loader: 'file-loader'
+ },
+ {
+ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
+ loader: 'file-loader'
+ },
+ {
+ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
+ loader: 'file-loader'
+ },
+ {
+ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
+ loader: 'file-loader'
}
]
},
@@ -50,12 +74,8 @@ var config = {
// For more information: https://github.com/kevlened/copy-webpack-plugin
//
new CopyWebpackPlugin([
- { from: 'css/*.css' },
{ from: 'img/*'},
{ from: 'index.html' },
- { from: '../node_modules/bootstrap/dist/css/bootstrap.min.css', to: 'css' },
- { from: '../node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2', to: 'fonts' },
- { from: '../node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.woff', to: 'fonts' },
{ from: '../node_modules/zxcvbn/dist/zxcvbn.js', to: 'js' }
])
],