You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.3 KiB
100 lines
2.3 KiB
7 years ago
|
exports.config = {
|
||
|
// See http://brunch.io/#documentation for docs.
|
||
|
files: {
|
||
|
javascripts: {
|
||
7 years ago
|
entryPoints: {
|
||
7 years ago
|
'js/app.js': 'js/app.js'
|
||
|
},
|
||
|
|
||
|
joinTo: {
|
||
|
'js/test.js': [/^spec/, /^js/, /^node_modules/]
|
||
7 years ago
|
}
|
||
7 years ago
|
|
||
|
// To use a separate vendor.js bundle, specify two files path
|
||
|
// http://brunch.io/docs/config#-files-
|
||
|
// joinTo: {
|
||
7 years ago
|
// 'js/app.js': /^js/,
|
||
|
// 'js/vendor.js': /^(?!js)/
|
||
7 years ago
|
// }
|
||
|
//
|
||
|
// To change the order of concatenation of files, explicitly mention here
|
||
|
// order: {
|
||
|
// before: [
|
||
7 years ago
|
// 'vendor/js/jquery-2.1.1.js',
|
||
|
// 'vendor/js/bootstrap.min.js'
|
||
7 years ago
|
// ]
|
||
|
// }
|
||
|
},
|
||
|
stylesheets: {
|
||
7 years ago
|
joinTo: {
|
||
7 years ago
|
'css/app.css': 'css/app.scss',
|
||
|
'css/test.css': 'spec/support/jasmine.scss',
|
||
7 years ago
|
}
|
||
7 years ago
|
},
|
||
|
templates: {
|
||
7 years ago
|
joinTo: 'js/app.js'
|
||
7 years ago
|
}
|
||
|
},
|
||
|
|
||
|
conventions: {
|
||
|
// This option sets where we should place non-css and non-js assets in.
|
||
7 years ago
|
// By default, we set this to '/assets/static'. Files in this directory
|
||
|
// will be copied to `paths.public`, which is 'priv/static' by default.
|
||
7 years ago
|
assets: /^(static)/
|
||
|
},
|
||
|
|
||
|
// Phoenix paths configuration
|
||
|
paths: {
|
||
|
// Dependencies and current project directories to watch
|
||
7 years ago
|
watched: ['static', 'css', 'css/**', 'js', 'vendor', 'spec'],
|
||
7 years ago
|
// Where to compile files to
|
||
7 years ago
|
public: '../priv/static'
|
||
7 years ago
|
},
|
||
|
|
||
|
// Configure your plugins
|
||
|
plugins: {
|
||
|
babel: {
|
||
7 years ago
|
presets: ['env', 'react'],
|
||
|
|
||
7 years ago
|
// Do not use ES6 compiler in vendor code
|
||
|
ignore: [/vendor/]
|
||
7 years ago
|
},
|
||
|
|
||
|
sass: {
|
||
|
mode: 'native',
|
||
|
precision: 8,
|
||
|
allowCache: true,
|
||
|
options: {
|
||
7 years ago
|
includePaths: ['node_modules/normalize-scss/sass', 'node_modules/jasmine-core/lib']
|
||
7 years ago
|
}
|
||
7 years ago
|
}
|
||
|
},
|
||
|
|
||
|
modules: {
|
||
|
autoRequire: {
|
||
7 years ago
|
'js/app.js': ['js/app'],
|
||
7 years ago
|
'js/test.js': ['spec/spec_helper']
|
||
|
}
|
||
|
},
|
||
|
|
||
|
overrides: {
|
||
|
production: {
|
||
|
optimize: true,
|
||
|
sourceMaps: false,
|
||
|
plugins: {
|
||
|
autoReload: {enabled: false},
|
||
|
},
|
||
|
modules: {autoRequire: {'js/app.js': ['js/app']}},
|
||
|
paths: {watched: ['static', 'css', 'css/**', 'js', 'vendor']},
|
||
|
files: {
|
||
|
javascripts: {joinTo: 'js/app.js'},
|
||
|
stylesheets: {joinTo: 'css/app.css'},
|
||
|
}
|
||
7 years ago
|
}
|
||
|
},
|
||
|
|
||
|
npm: {
|
||
|
enabled: true
|
||
|
}
|
||
7 years ago
|
}
|