From da21b06db133f6dd57407d1f7430e93fa4221183 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 17 Feb 2017 19:29:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Rename=20Hello.spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.config.base.js | 6 ++++++ test/specs/{Hello.spec.js => MdcButton.spec.js} | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) rename test/specs/{Hello.spec.js => MdcButton.spec.js} (87%) diff --git a/build/webpack.config.base.js b/build/webpack.config.base.js index 14608d2..359e267 100644 --- a/build/webpack.config.base.js +++ b/build/webpack.config.base.js @@ -51,6 +51,12 @@ module.exports = { filename: `${filename}.common.js`, }, entry: './src/index.js', + resolve: { + extensions: ['.js', '.vue', '.jsx', 'css'], + alias: { + 'src': resolve(__dirname, '../src') + } + }, module: { rules: [ { diff --git a/test/specs/Hello.spec.js b/test/specs/MdcButton.spec.js similarity index 87% rename from test/specs/Hello.spec.js rename to test/specs/MdcButton.spec.js index e5d76d7..14222db 100644 --- a/test/specs/Hello.spec.js +++ b/test/specs/MdcButton.spec.js @@ -1,4 +1,4 @@ -import MdcButton from '../../src/Button.vue' +import MdcButton from 'src/Button.vue' import { createVM } from '../helpers/utils.js' describe('Button.vue', function () {