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 09:42:15 +0100
commit337c6ae29cf58605c3c6c92f27324a17cc80e634 (patch)
tree65aff3bf28e762b2ef01792dea934f4c8891724e /webpack.config.js
parent577649504775349936391330a8bdf3fd58464a67 (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