fix build

This commit is contained in:
Colin Megill
2017-10-23 12:47:52 -07:00
parent 0c0a4124fc
commit 68c48f9a2f
4 changed files with 8 additions and 12 deletions
+2 -2
View File
@@ -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"
]
};
+2 -2
View File
@@ -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') ] ])
};
+1 -5
View File
@@ -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'
})
]