svg buttons (initial)

removed styled-components
gradient paths
This commit is contained in:
Fedor Katurov 2018-08-21 15:26:35 +07:00
parent 245b559e2d
commit 7229a48297
22 changed files with 853 additions and 89 deletions

View file

@ -10,11 +10,13 @@ const { join } = require('path');
/* Plugins */
const concatPlugin = new webpack.optimize.ModuleConcatenationPlugin();
const htmlPlugin = new HtmlWebPackPlugin({
template: './src/index.html',
filename: './index.html',
title: 'Map',
hash: false,
favicon: 'src/sprites/favicon.png',
});
const isDevelopment = process.env.NODE_ENV !== 'production';
@ -48,10 +50,11 @@ const resolve = {
module.exports = () => {
/* Export */
const plugins = [
concatPlugin,
htmlPlugin,
// flowPlugin,
gitPlugin,
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
new webpack.IgnorePlugin(/^osrm-text-instructions$/, /leaflet-routing-machine$/)
];
return {
@ -64,6 +67,14 @@ module.exports = () => {
{ loader: 'css-loader' }
]
},
{
test: /\.less$/,
use: [
{ loader: 'style-loader' },
{ loader: 'css-loader' },
{ loader: 'less-loader' }
]
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
@ -82,7 +93,7 @@ module.exports = () => {
}
},
{
test: /\.(png)$/,
test: /\.(png|svg)$/,
use: {
loader: 'file-loader',
options: {}