Skip to content

Commit 9b4741c

Browse files
committed
remove webpack validator and fix import loader
1 parent 865fc5b commit 9b4741c

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

webpack/web/production.js

+3-12
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ process.env.BABEL_ENV = 'production';
1616

1717
const root = '../..';
1818

19-
const config = validate(merge(baseConfig, {
19+
const config = merge(baseConfig, {
2020
devtool: 'cheap-module-source-map',
2121

2222
output: {
@@ -45,7 +45,7 @@ const config = validate(merge(baseConfig, {
4545
},
4646
{
4747
test: require.resolve(`${root}/app/index.js`),
48-
loader: 'imports?offlineRuntime=offline-plugin/runtime'
48+
loader: 'imports-loader?offlineRuntime=offline-plugin/runtime'
4949
}
5050

5151
]
@@ -123,15 +123,6 @@ const config = validate(merge(baseConfig, {
123123
}
124124
})
125125
]
126-
}), {
127-
schemaExtension: Joi.object({
128-
sassLoader: Joi.any(),
129-
toolbox: Joi.any(),
130-
resolve: {
131-
modules: Joi.any()
132-
}
133-
})
134-
}
135-
);
126+
});
136127

137128
module.exports = config;

0 commit comments

Comments
 (0)