Fix npm run build(Failed to minify the code from this file)

This commit is contained in:
dntzhang 2018-11-07 08:55:36 +08:00
parent 3afcf00d74
commit 920c9396c2
2 changed files with 8 additions and 8 deletions

View File

@ -121,7 +121,7 @@ module.exports = {
// for React Native Web.
extensions: ['.web.js', '.mjs', '.js', '.json', '.web.jsx', '.jsx'],
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
@ -152,7 +152,7 @@ module.exports = {
// options: {
// formatter: eslintFormatter,
// eslintPath: require.resolve('eslint'),
// },
// loader: require.resolve('eslint-loader'),
// },
@ -177,10 +177,10 @@ module.exports = {
// Process JS with Babel.
{
test: /\.(js|jsx|mjs)$/,
include: paths.appSrc,
//include: paths.appSrc,
loader: require.resolve('babel-loader'),
options: {
compact: true,
},
},

View File

@ -121,7 +121,7 @@ module.exports = {
// for React Native Web.
extensions: ['.web.js', '.mjs', '.js', '.json', '.web.jsx', '.jsx'],
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
@ -152,7 +152,7 @@ module.exports = {
// options: {
// formatter: eslintFormatter,
// eslintPath: require.resolve('eslint'),
// },
// loader: require.resolve('eslint-loader'),
// },
@ -177,10 +177,10 @@ module.exports = {
// Process JS with Babel.
{
test: /\.(js|jsx|mjs)$/,
include: paths.appSrc,
//include: paths.appSrc,
loader: require.resolve('babel-loader'),
options: {
compact: true,
},
},