2019-09-30 23:51:46 +03:00
|
|
|
const path = require("path");
|
|
|
|
const common = require("./webpack.common");
|
|
|
|
const merge = require("webpack-merge");
|
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: "development",
|
|
|
|
output: {
|
2019-10-01 02:58:05 +03:00
|
|
|
filename: "bundle.js",
|
|
|
|
path: path.resolve(__dirname, "dist"),
|
|
|
|
libraryTarget: "amd-require"
|
|
|
|
},
|
2020-04-09 20:09:51 +02:00
|
|
|
devtool: '#inline-source-map',
|
2019-10-01 02:58:05 +03:00
|
|
|
module: {
|
|
|
|
rules: [
|
2020-02-28 14:36:42 +01:00
|
|
|
{
|
|
|
|
test: /\.js$/,
|
2020-04-24 13:46:57 +03:00
|
|
|
exclude: /node_modules[\\/](?!query-string|split-on-first|strict-uri-encode)/,
|
2020-02-28 14:36:42 +01:00
|
|
|
loader: "babel-loader"
|
|
|
|
},
|
2019-10-01 02:58:05 +03:00
|
|
|
{
|
|
|
|
test: /\.css$/i,
|
2020-02-28 14:36:42 +01:00
|
|
|
use: ["style-loader", "css-loader", "postcss-loader"]
|
2019-10-01 02:58:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(png|jpg|gif)$/i,
|
|
|
|
use: ["file-loader"]
|
2020-01-19 12:57:09 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
|
|
use: [
|
2020-04-25 14:07:20 +02:00
|
|
|
'file-loader'
|
2020-01-19 12:57:09 +01:00
|
|
|
]
|
2019-10-01 02:58:05 +03:00
|
|
|
}
|
|
|
|
]
|
2020-02-28 09:01:22 +01:00
|
|
|
}
|
2019-09-30 23:51:46 +03:00
|
|
|
});
|