feat: basic webpack-chain setup

This commit is contained in:
Igor Randjelovic
2020-11-14 14:27:52 +01:00
committed by Nathan Walker
parent 96da507d64
commit aaae0d4f2e
5 changed files with 54 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`vue configuration works 1`] = `
Object {
"entry": Object {
"bundle.js": Array [
"bundle.js",
],
},
"module": Object {
"rules": Array [
Object {
"test": /\\\\\\.vue\\$/,
"use": Array [
Object {
"loader": "vue-loader",
"options": Object {
"compiler": "nativescript-vue-template-compiler",
},
},
],
},
],
},
}
`;

View File

@@ -0,0 +1,7 @@
import { vueConfig } from '@nativescript/webpack';
describe('vue configuration', () => {
it('works', () => {
expect(vueConfig('')).toMatchSnapshot();
});
});