Skip to content

Instantly share code, notes, and snippets.

View piotrekwitkowski's full-sized avatar

piotrekwitkowski

View GitHub Profile
@piotrekwitkowski
piotrekwitkowski / package.json
Created February 22, 2019 22:43
Użycie Sass/CSS w customElmentach przy użyciu lit-element i webpacka (1)
"devDependencies": {
"css-loader": "^2.1.0",
"lit-element": "^2.0.1",
"node-sass": "^4.11.0",
"sass-loader": "^7.1.0",
"webpack": "^4.29.0",
"webpack-cli": "^3.2.1"
}
plugins: [
isProd && new webpack.optimize.SplitChunksPlugin({}),
new htmlPlugin({
filename: 'index.html',
template: 'src/index.html',
chunks: ['index'],
}),
isProd && new BundleAnalyzerPlugin({
module.exports = function (_, env) {
const isProd = env.mode === 'production';
return {
mode: isProd ? 'production' : 'development',
@piotrekwitkowski
piotrekwitkowski / package.json
Last active February 17, 2019 01:24
Jeden webpack.config.js dla buildów produkcyjnych i deweloperskich
"scripts": {
"start": "webpack-dev-server --hot",
"build": "webpack -p"
}