mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 00:28:13 +08:00
fix build
This commit is contained in:
@@ -2,12 +2,12 @@ module.exports = {
|
||||
babelrc: false,
|
||||
cacheDirectory: true,
|
||||
presets: [
|
||||
[ "es2015", { loose: true, modules: false } ],
|
||||
[ "env", { loose: true, modules: false } ],
|
||||
"stage-0",
|
||||
"react"
|
||||
],
|
||||
plugins: [
|
||||
"react-hot-loader/babel",
|
||||
"transform-decorators-legacy"
|
||||
"babel-plugin-transform-decorators-legacy"
|
||||
]
|
||||
};
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
module.exports = {
|
||||
babelrc: false,
|
||||
presets: [
|
||||
[ "es2015", { loose: true, modules: false } ],
|
||||
[ "env", { loose: true, modules: false } ],
|
||||
"stage-0",
|
||||
"react"
|
||||
],
|
||||
plugins: [
|
||||
"babel-plugin-transform-react-constant-elements",
|
||||
"transform-decorators-legacy"
|
||||
"babel-plugin-transform-decorators-legacy"
|
||||
].map(require.resolve).concat([ [ require.resolve('babel-plugin-transform-runtime') ] ])
|
||||
};
|
||||
|
||||
@@ -100,12 +100,8 @@ module.exports = {
|
||||
output: { comments: false, screw_ie8: true }
|
||||
}),
|
||||
new ExtractTextPlugin('static/css/[name].[contenthash:8].css'),
|
||||
new CopyWebpackPlugin([
|
||||
{ from: 'public' },
|
||||
{ from: 'manifest.webmanifest' }
|
||||
]),
|
||||
new SWPrecacheWebpackPlugin({
|
||||
cacheId: 'formidable-react-starter',
|
||||
cacheId: 'cellxgene',
|
||||
filename: 'service-worker.js'
|
||||
})
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user