1 | Object.defineProperty(exports, "__esModule", {
|
2 | value: true
|
3 | });
|
4 |
|
5 | var _path = require('path');
|
6 |
|
7 | var _compile = require('./utils/compile');
|
8 |
|
9 | require('babel-register');
|
10 |
|
11 | function compileCSS(entryPointFilePath) {
|
12 | (0, _compile.prepareCompilationEnvironment)();
|
13 | var entryPointFileAbsolutePath = (0, _path.resolve)(entryPointFilePath);
|
14 |
|
15 | require(entryPointFileAbsolutePath);
|
16 | (0, _compile.cleanupCompilationEnvironment)();
|
17 | return _compile.CSS;
|
18 | }
|
19 |
|
20 |
|
21 |
|
22 | exports['default'] = compileCSS; |
\ | No newline at end of file |