File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Preact Boilerplate / Starter Kit
2
2
3
- > :guitar : Ready-to-rock [ webpack ] -powered [ Preact] starter project.
3
+ > :guitar : Ready-to-rock [ Preact] starter project, powered by [ webpack ] .
4
4
>
5
5
> :rocket : If you're starting a new project using [ Preact] , you've come to the right place.
6
6
> Below is a step-by-step guide that takes you straight from downloading this boilerplate to production.
12
12
> - [ License] ( #license )
13
13
14
14
15
+ ** [ :boom : View Demo :boom : ] ( https://preact-boilerplate.surge.sh ) **
16
+
17
+
15
18
## Installation
16
19
17
20
** 1. Clone this repo:**
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import HtmlWebpackPlugin from 'html-webpack-plugin';
4
4
import autoprefixer from 'autoprefixer' ;
5
5
6
6
const ENV = process . env . NODE_ENV || 'development' ;
7
- const MAP = ENV === 'production' ? '' : '?sourceMap' ;
8
7
9
8
module . exports = {
10
9
entry : './src/index.js' ,
@@ -48,15 +47,15 @@ module.exports = {
48
47
test : / \. ( l e s s | c s s ) $ / ,
49
48
include : / s r c \/ c o m p o n e n t s \/ / ,
50
49
loader : ExtractTextPlugin . extract ( [
51
- `css${ MAP || '?' } &modules&importLoaders=1&localIdentName=[local]${ process . env . CSS_MODULES_IDENT || '_[hash:base64:5]' } ` ,
50
+ `css?sourceMap &modules&importLoaders=1&localIdentName=[local]${ process . env . CSS_MODULES_IDENT || '_[hash:base64:5]' } ` ,
52
51
'postcss' ,
53
- ` less${ MAP } `
52
+ ' less?sourceMap'
54
53
] . join ( '!' ) )
55
54
} ,
56
55
{
57
56
test : / \. ( l e s s | c s s ) $ / ,
58
57
exclude : / s r c \/ c o m p o n e n t s \/ / ,
59
- loader : ExtractTextPlugin . extract ( ` css${ MAP } !postcss!less${ MAP } ` )
58
+ loader : ExtractTextPlugin . extract ( ' css?sourceMap !postcss!less?sourceMap' )
60
59
} ,
61
60
{
62
61
test : / \. j s o n $ / ,
You can’t perform that action at this time.
0 commit comments