mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 18:39:40 +00:00
Migrate to Rollup + Buble
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
|
||||
var definePlugin = new webpack.DefinePlugin({
|
||||
__DEV__: JSON.stringify(JSON.parse(process.env.BUILD_DEV || 'true')),
|
||||
__DEMO__: JSON.stringify(JSON.parse(process.env.BUILD_DEMO || 'false')),
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
_ui_compiled: './src/home-assistant.js',
|
||||
_core_compiled: './src/entry-points/app-core.js',
|
||||
_demo_data_compiled: './home-assistant-js/demo_data/expose_window.js',
|
||||
},
|
||||
output: {
|
||||
path: 'build',
|
||||
filename: '[name].js',
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
test: /.js$/,
|
||||
include: [
|
||||
path.resolve(__dirname, 'src'),
|
||||
path.resolve(__dirname, 'home-assistant-js'),
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
definePlugin,
|
||||
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /no-other-locales-for-now/),
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user