-
Notifications
You must be signed in to change notification settings - Fork 41
/
webpack.config.dev.js
37 lines (36 loc) · 1.08 KB
/
webpack.config.dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const { merge } = require('webpack-merge')
const commonConfig = require('./webpack.config.common')
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require("path");
module.exports = merge(commonConfig, {
mode: 'development',
devtool: 'inline-source-map',
output: {
publicPath: '/bundles/networkinginitcms',
pathinfo: true,
path: path.resolve(__dirname, 'src/Resources/public/'),
clean: true,
filename: '[name].js',
},
module: {
rules: [
{
test: /\.(png|jpg|jpeg|svg|gif)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: '/img'
}
}
]
},
plugins: [
// make sure to include the plugin!
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: '[name].css',
chunkFilename: '[id].css',
})
]
})