forked from grommet/grommet-index
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrommet-toolbox.config.js
52 lines (51 loc) · 1.11 KB
/
grommet-toolbox.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import path from 'path';
export default {
dist: path.resolve(__dirname, 'dist'),
copyAssets: [
'README.md',
'package.json',
{
asset: 'src/js/**',
babel: true
},
{
asset: 'src/scss/**',
dist: 'dist/scss/'
},
{
asset: 'examples/**',
dist: 'dist/examples/',
ignores: [
'node_modules/',
'dist/'
]
}
],
scssAssets: ['src/scss/**/*.scss'],
jsAssets: [
'src/js/**/*.js'
],
mainJs: 'src/js/index.js',
mainScss: 'src/scss/grommet-index/index.scss',
webpack: {
//alias: { // TODO: remove, just for local dev
// 'grommet/scss': path.resolve(__dirname, '../grommet/src/scss'),
// 'grommet': path.resolve(__dirname, '../grommet/src/js')
//},
output: {
filename: 'grommet-index.min.js',
libraryTarget: 'var',
library: 'GrommetIndex'
},
resolve: {
modulesDirectories: ['node_modules', 'src/js', 'src/scss']
},
externals: {
'react': 'React',
'react-dom': 'ReactDOM',
'grommet': 'grommet'
}
},
scsslint: true,
distPreprocess: ['dist-css']
};