From 0993660a27c418193f02cb95df164610295d2ab6 Mon Sep 17 00:00:00 2001 From: caihongyun Date: Thu, 5 Apr 2018 20:02:36 +0800 Subject: [PATCH] add extension to webpack config (#61) --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 052d7f80..41447d4e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -51,7 +51,8 @@ module.exports = (options = {}) => ({ resolve: { alias: { '~': resolve(__dirname, 'src') - } + }, + extensions: ['.js', '.vue', '.json', '.css'] }, devServer: { host: '127.0.0.1',