mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-09 00:38:12 +08:00
fix build
This commit is contained in:
@@ -2,12 +2,12 @@ module.exports = {
|
|||||||
babelrc: false,
|
babelrc: false,
|
||||||
cacheDirectory: true,
|
cacheDirectory: true,
|
||||||
presets: [
|
presets: [
|
||||||
[ "es2015", { loose: true, modules: false } ],
|
[ "env", { loose: true, modules: false } ],
|
||||||
"stage-0",
|
"stage-0",
|
||||||
"react"
|
"react"
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
"react-hot-loader/babel",
|
"react-hot-loader/babel",
|
||||||
"transform-decorators-legacy"
|
"babel-plugin-transform-decorators-legacy"
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
babelrc: false,
|
babelrc: false,
|
||||||
presets: [
|
presets: [
|
||||||
[ "es2015", { loose: true, modules: false } ],
|
[ "env", { loose: true, modules: false } ],
|
||||||
"stage-0",
|
"stage-0",
|
||||||
"react"
|
"react"
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
"babel-plugin-transform-react-constant-elements",
|
"babel-plugin-transform-react-constant-elements",
|
||||||
"transform-decorators-legacy"
|
"babel-plugin-transform-decorators-legacy"
|
||||||
].map(require.resolve).concat([ [ require.resolve('babel-plugin-transform-runtime') ] ])
|
].map(require.resolve).concat([ [ require.resolve('babel-plugin-transform-runtime') ] ])
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -100,12 +100,8 @@ module.exports = {
|
|||||||
output: { comments: false, screw_ie8: true }
|
output: { comments: false, screw_ie8: true }
|
||||||
}),
|
}),
|
||||||
new ExtractTextPlugin('static/css/[name].[contenthash:8].css'),
|
new ExtractTextPlugin('static/css/[name].[contenthash:8].css'),
|
||||||
new CopyWebpackPlugin([
|
|
||||||
{ from: 'public' },
|
|
||||||
{ from: 'manifest.webmanifest' }
|
|
||||||
]),
|
|
||||||
new SWPrecacheWebpackPlugin({
|
new SWPrecacheWebpackPlugin({
|
||||||
cacheId: 'formidable-react-starter',
|
cacheId: 'cellxgene',
|
||||||
filename: 'service-worker.js'
|
filename: 'service-worker.js'
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|||||||
+3
-3
@@ -47,11 +47,12 @@
|
|||||||
"autoprefixer": "^6.4.0",
|
"autoprefixer": "^6.4.0",
|
||||||
"babel-core": "^6.13.2",
|
"babel-core": "^6.13.2",
|
||||||
"babel-eslint": "^7.1.1",
|
"babel-eslint": "^7.1.1",
|
||||||
"babel-loader": "^6.2.4",
|
"babel-loader": "^7.1.2",
|
||||||
"babel-plugin-istanbul": "^3.1.2",
|
"babel-plugin-istanbul": "^3.1.2",
|
||||||
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
||||||
"babel-plugin-transform-react-constant-elements": "^6.9.1",
|
"babel-plugin-transform-react-constant-elements": "^6.9.1",
|
||||||
"babel-plugin-transform-runtime": "^6.12.0",
|
"babel-plugin-transform-runtime": "^6.23.0",
|
||||||
|
"babel-preset-env": "^1.6.1",
|
||||||
"babel-preset-es2015": "^6.13.2",
|
"babel-preset-es2015": "^6.13.2",
|
||||||
"babel-preset-react": "^6.11.1",
|
"babel-preset-react": "^6.11.1",
|
||||||
"babel-preset-stage-0": "^6.5.0",
|
"babel-preset-stage-0": "^6.5.0",
|
||||||
@@ -65,7 +66,6 @@
|
|||||||
"css-modules-require-hook": "^4.0.1",
|
"css-modules-require-hook": "^4.0.1",
|
||||||
"enzyme": "^2.4.1",
|
"enzyme": "^2.4.1",
|
||||||
"eslint": "^2.10.2",
|
"eslint": "^2.10.2",
|
||||||
"eslint-config-formidable": "^2.0.1",
|
|
||||||
"eslint-loader": "^1.5.0",
|
"eslint-loader": "^1.5.0",
|
||||||
"eslint-plugin-filenames": "^1.1.0",
|
"eslint-plugin-filenames": "^1.1.0",
|
||||||
"eslint-plugin-import": "^2.2.0",
|
"eslint-plugin-import": "^2.2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user