winjs / winstrap

The official Bootstrap theme for Microsoft's Modern design language
http://winstrap.azurewebsites.net
Other
533 stars 122 forks source link

Solve "cannot find module 'winstrap'" problem. #166

Closed hezedu closed 6 years ago

hezedu commented 6 years ago

I want to use var winstrap = require('winstrap'); directly.

But it will get an Error: Cannot find module 'winstrap'.

So I create this pull request.

Then we can use it like:

const express = require('express');
const winstrap = require('winstrap');
const path = require('path');
const app = express();
app.use('/winstrap_dist', path.join(winstrap, 'dist');
msftclas commented 6 years ago

CLA assistant check
All CLA requirements met.