mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-12 21:48:39 +01:00
looks like it works on windows now
This commit is contained in:
parent
a7dfc90427
commit
92736d2cd6
@ -32,7 +32,7 @@ var config = {
|
|||||||
loader: 'babel',
|
loader: 'babel',
|
||||||
query: {
|
query: {
|
||||||
presets: ['es2015','react'],
|
presets: ['es2015','react'],
|
||||||
plugins: ['transform-runtime']
|
plugins: addTransformRuntime([])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ var config = {
|
|||||||
loader: 'babel',
|
loader: 'babel',
|
||||||
query: {
|
query: {
|
||||||
presets: ['es2015'],
|
presets: ['es2015'],
|
||||||
plugins: ['transform-runtime']
|
plugins: addTransformRuntime([])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -60,13 +60,13 @@ var config = {
|
|||||||
inject: 'body'
|
inject: 'body'
|
||||||
}),
|
}),
|
||||||
// Optimization
|
// Optimization
|
||||||
|
new webpack.optimize.OccurenceOrderPlugin(),
|
||||||
|
new webpack.optimize.DedupePlugin(),
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
compress: {
|
compress: {
|
||||||
warnings: false
|
warnings: false
|
||||||
}
|
}
|
||||||
}),
|
})
|
||||||
new webpack.optimize.OccurenceOrderPlugin(),
|
|
||||||
new webpack.optimize.DedupePlugin()
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,6 +81,17 @@ config.devServer = {
|
|||||||
colors: true,
|
colors: true,
|
||||||
inline: true,
|
inline: true,
|
||||||
contentBase: config.output.path
|
contentBase: config.output.path
|
||||||
},
|
}
|
||||||
|
|
||||||
|
function addTransformRuntime(l){
|
||||||
|
if(process.env.os != 'Windows_NT'){
|
||||||
|
// Workaround for babel6 bug on windows
|
||||||
|
// https://phabricator.babeljs.io/T6670
|
||||||
|
// https://phabricator.babeljs.io/T2954
|
||||||
|
// Disabling uglify on windows does the trick
|
||||||
|
return l.concat('transform-runtime')
|
||||||
|
}
|
||||||
|
return l
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = config
|
module.exports = config
|
||||||
|
Loading…
Reference in New Issue
Block a user