mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 10:40:23 +00:00
Implement simple Webpack setup
This commit is contained in:
4
samples/misc/Webpack/Clientside/App.ts
Normal file
4
samples/misc/Webpack/Clientside/App.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { HelloWorld } from './HelloWorld';
|
||||
import './styles/main.less';
|
||||
|
||||
new HelloWorld().doIt();
|
||||
5
samples/misc/Webpack/Clientside/HelloWorld.ts
Normal file
5
samples/misc/Webpack/Clientside/HelloWorld.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export class HelloWorld {
|
||||
public doIt() {
|
||||
console.log('Hello from MyApp');
|
||||
}
|
||||
}
|
||||
5
samples/misc/Webpack/Clientside/styles/main.less
Normal file
5
samples/misc/Webpack/Clientside/styles/main.less
Normal file
@@ -0,0 +1,5 @@
|
||||
@headerColor: red;
|
||||
|
||||
h1 {
|
||||
color: @headerColor;
|
||||
}
|
||||
Reference in New Issue
Block a user