mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
svg buttons (initial)
removed styled-components gradient paths
This commit is contained in:
parent
245b559e2d
commit
7229a48297
22 changed files with 853 additions and 89 deletions
|
@ -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: {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue