Skip to content

Instantly share code, notes, and snippets.

View skryvets's full-sized avatar
👋

Sergey Kryvets skryvets

👋
View GitHub Profile
@Configuration
@EnableWebSecurity
public class WebSecurity extends WebSecurityConfigurerAdapter {
public WebSecurity() {}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.cors().and().csrf().disable().authorizeRequests()
@skryvets
skryvets / webpack.config.js
Created March 23, 2018 18:31
Webpack configuration file
var webpack = require('webpack');
var path = require('path');
var fs = require('fs');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var SvgStore = require('webpack-svgstore-plugin');
var LiveReloadPlugin = require('webpack-livereload-plugin');
var inProduction = process.env.NODE_ENV === 'production';