Revize 660f24a7
Přidáno uživatelem Martin Sebela před více než 3 roky(ů)
website/webpack.config.js | ||
---|---|---|
1 | 1 |
const path = require('path'); |
2 | 2 |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); |
3 | 3 |
|
4 |
module.exports = [{ |
|
4 |
module.exports = [ |
|
5 |
{ |
|
5 | 6 |
entry: { |
6 |
index: "./public/js/index.js",
|
|
7 |
index: './public/js/index.js',
|
|
7 | 8 |
polyfills: './public/js/polyfills.js', |
8 | 9 |
}, |
9 | 10 |
optimization: { |
... | ... | |
14 | 15 |
path: path.resolve(__dirname, 'public/js'), |
15 | 16 |
library: 'js' |
16 | 17 |
}, |
17 |
}, { |
|
18 |
}, |
|
19 |
{ |
|
18 | 20 |
plugins: [new MiniCssExtractPlugin()], |
19 | 21 |
entry: { |
20 |
style: ['./public/css/style.scss']
|
|
22 |
style: './public/css/style.scss'
|
|
21 | 23 |
}, |
22 | 24 |
optimization: { |
23 | 25 |
minimize: true |
Také k dispozici: Unified diff
Re #8192 - configurable GUI (vars in SASS file)