summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-06-20 08:13:07 +0200
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:20:13 +0100
commit9fe82842fef9fc74f96bb342873e26de7b1709fd (patch)
tree65aff3bf28e762b2ef01792dea934f4c8891724e /webpack.config.js
parent3fcbd1cd6f5b4fc59bc589eec80bf4d651fe6662 (diff)
FUNCT Added first visual version
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index c4934a0..ec29d07 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -25,6 +25,11 @@ module.exports = {
{
from: 'src/config.xml',
flatten: true
+ },
+ {
+ from: 'src/mockups/*',
+ to: 'mockups/',
+ flatten: true
}
]),
new HtmlWebpackPlugin({
@@ -53,7 +58,25 @@ module.exports = {
"css-loader",
"sass-loader"
]
+ },
+ {
+ test: /\.(gif|png|jpe?g|svg)$/i,
+ use: [
+ 'file-loader',
+ {
+ loader: "image-webpack-loader",
+ options: {
+ bypassOnDebug: true, // webpack@1.x
+ disable: true, // webpack@2.x and newer
+ },
+ }
+ ]
}
]
+ },
+ devServer: {
+ contentBase: path.join(__dirname, 'dist'),
+ compress: true,
+ port: 9000
}
};  \ No newline at end of file