ticktock-js
Version:
TickTock is a JavaScript library used to animate mechanical watches and clocks.
31 lines (30 loc) • 781 B
JavaScript
const webpack = require('webpack');
const path = require('path');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
module.exports = {
entry: './src/js/app.js',
output: {
filename: 'app.js',
path: path.resolve(__dirname, './dist/js/')
},
plugins: [new BrowserSyncPlugin({
files: [
"./dist/**/*.js", "./**/*.html", "./dist/styles/*.css"
],
host: 'localhost',
port: 3000,
server: {baseDir: ['./']}
})],
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {presets: ['env']}
},
{
test: /\.json$/,
loader: "json-loader"
}]
}
};