Switched to `preact-compat`
This commit is contained in:
parent
840e5f41a7
commit
ea01e581cd
13
gulpfile.js
13
gulpfile.js
|
@ -63,6 +63,13 @@ const loaders = [
|
||||||
{ test: /\.svg$/, loader: 'svg-url-loader' }
|
{ test: /\.svg$/, loader: 'svg-url-loader' }
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const resolve = {
|
||||||
|
'alias': {
|
||||||
|
'react': 'preact-compat',
|
||||||
|
'react-dom': 'preact-compat'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// create a single instance of the compiler to allow caching
|
// create a single instance of the compiler to allow caching
|
||||||
const compiler = webpack({
|
const compiler = webpack({
|
||||||
entry: ENTRY,
|
entry: ENTRY,
|
||||||
|
@ -81,7 +88,8 @@ const compiler = webpack({
|
||||||
: [bannerPlugin, productionEnvPlugin, minifyPlugin],
|
: [bannerPlugin, productionEnvPlugin, minifyPlugin],
|
||||||
module: {
|
module: {
|
||||||
loaders
|
loaders
|
||||||
}
|
},
|
||||||
|
resolve
|
||||||
})
|
})
|
||||||
|
|
||||||
// create a single instance of the compiler to allow caching
|
// create a single instance of the compiler to allow caching
|
||||||
|
@ -105,7 +113,8 @@ const compilerMinimalist = webpack({
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
loaders
|
loaders
|
||||||
}
|
},
|
||||||
|
resolve
|
||||||
})
|
})
|
||||||
|
|
||||||
const externals = {
|
const externals = {
|
||||||
|
|
|
@ -29,9 +29,8 @@
|
||||||
"brace": "0.9.1",
|
"brace": "0.9.1",
|
||||||
"javascript-natural-sort": "0.7.1",
|
"javascript-natural-sort": "0.7.1",
|
||||||
"lodash": "4.17.4",
|
"lodash": "4.17.4",
|
||||||
"react": "15.4.1",
|
"preact": "7.1.0",
|
||||||
"react-dom": "15.4.1",
|
"preact-compat": "3.9.4"
|
||||||
"react-scroll": "1.4.4"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ava": "0.17.0",
|
"ava": "0.17.0",
|
||||||
|
|
Loading…
Reference in New Issue